@charset "UTF-8";
/* ========================================================================== 1. GLOBAL RESET & TOUCHSCREEN OPTIMIZATION ========================================================================== */
*, *::before, *::after { -webkit-box-sizing: border-box; box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; }

html, body { width: 100%; height: 100%; overflow: hidden; background-color: #000000; font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; -ms-touch-action: manipulation; touch-action: manipulation; }

/* ========================================================================== 2. VIEWPORT WRAPPER & FIXED 1920x1080 FULL HD GAME STAGE ========================================================================== */
#viewport-wrapper { position: fixed; inset: 0; width: 100vw; height: 100vh; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; background-color: #000000; overflow: hidden; }

#game-stage { position: relative; width: 1920px; height: 1080px; -ms-flex-negative: 0; flex-shrink: 0; overflow: hidden; background-color: #002D9C; -webkit-transform-origin: center center; transform-origin: center center; -webkit-box-shadow: 0 0 80px rgba(0, 0, 0, 0.85); box-shadow: 0 0 80px rgba(0, 0, 0, 0.85); }

/* ========================================================================== 3. SCREEN LAYER SYSTEM & SMOOTH TRANSITIONS ========================================================================== */
.game-screen { position: absolute; top: 0; left: 0; width: 1920px; height: 1080px; opacity: 0; visibility: hidden; pointer-events: none; -webkit-transition: opacity 0.45s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.45s ease; transition: opacity 0.45s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.45s ease; z-index: 1; }

.game-screen.active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 10; }

/* Shared Scenic SVG Background Container */
.bg-art-layer { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: hidden; }

.bg-art-layer svg { width: 100%; height: 100%; display: block; }

/* ========================================================================== 4. BRAND LOGO (TOP-LEFT POSITION) ========================================================================== */
.brand-logo { position: absolute; top: 92px; left: 112px; width: 375px; height: auto; z-index: 20; pointer-events: none; }
.brand-logo img { display: block; width: 100%; }

/* ========================================================================== 5. STEP 1: MÀN HÌNH CHỜ & GIỚI THIỆU (#screen-step-1) -------------------------------------------------------------------------- PRODUCTION IMAGE SWAP: To use your own local image instead of the built-in SVG artwork, uncomment the background-image rule below and set `.step1-svg-bg { display: none; }` ========================================================================== */
.step1-content { position: relative; z-index: 15; padding-top: 365px; padding-left: 112px; max-width: 1080px; }

.step1-heading { font-size: 70px; font-weight: 800; line-height: 1.15; color: #00289b; text-transform: uppercase; text-shadow: 0 2px 18px rgba(255, 255, 255, 0.7); margin-bottom: 65px; }

/* ========================================================================== 6. STEP 2: MÀN HÌNH CHƠI GAME (#screen-step-2) -------------------------------------------------------------------------- PRODUCTION IMAGE SWAP: To use your own local image for Step 2, uncomment the background-image rule below and set `.step2-svg-bg { display: none; }` ========================================================================== */
#screen-step-2 { background-color: #002D9C; background-image: url("../images/lumi-hanoi.jpg"); background-size: cover; background-position: center; }

/* Deep CapitaLand Royal-Blue Left Gradient Overlay */
.step2-gradient-overlay { position: absolute; inset: 0; z-index: 5; pointer-events: none; background: -webkit-gradient(linear, left top, right top, from(#002D9C), color-stop(24%, #002D9C), color-stop(38%, rgba(0, 45, 156, 0.94)), color-stop(52%, rgba(0, 45, 156, 0.72)), color-stop(68%, rgba(0, 45, 156, 0.28)), color-stop(84%, rgba(0, 45, 156, 0))); background: linear-gradient(90deg, #002D9C 0%, #002D9C 24%, rgba(0, 45, 156, 0.94) 38%, rgba(0, 45, 156, 0.72) 52%, rgba(0, 45, 156, 0.28) 68%, rgba(0, 45, 156, 0) 84%); }

.step2-content { position: relative; z-index: 15; padding-top: 342px; padding-left: 112px; width: 1520px; }

.project-label { display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; gap: 14px; margin-bottom: 24px; }

.project-label-pin { width: 30px; height: 38px; -ms-flex-negative: 0; flex-shrink: 0; -webkit-filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35)); filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35)); }

.project-label-text { font-size: 38px; font-weight: 600; color: #FFFFFF; letter-spacing: 0.3px; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28); }

/* Dynamic Project Name Display */
#project-word { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; -webkit-box-align: baseline; -ms-flex-align: baseline; align-items: baseline; min-height: 162px; margin-bottom: 84px; color: #FFFFFF; font-size: 128px; font-weight: 700; line-height: 1.2; text-transform: uppercase; text-shadow: 0 6px 24px rgba(0, 18, 70, 0.45); white-space: nowrap; }

/* Responsive Font Scaling for Longer Project Names */
#project-word.size-medium { font-size: 128px; }

#project-word.size-long { font-size: 128px; max-width: 1080px; margin-bottom: 40px; }

.word-char { display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; }

.word-space { display: inline-block; width: 0.3em; }

/* Interactive Missing Letter Slots */
.letter-slot { display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; min-width: 0.88em; height: 1.12em; margin: 0 0.05em; position: relative; color: #FFFFFF; border-bottom: 10px solid #FFFFFF; border-radius: 10px 10px 0 0; -webkit-transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, -webkit-transform 0.16s ease; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, -webkit-transform 0.16s ease; transition: transform 0.16s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; transition: transform 0.16s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, -webkit-transform 0.16s ease; cursor: default; vertical-align: baseline; }

.letter-slot.empty { color: transparent; border-bottom: 10px solid rgba(255, 255, 255, 0.95); }

.letter-slot.empty::after { content: ''; position: absolute; bottom: -10px; left: 0; right: 0; height: 10px; background: #FFFFFF; -webkit-box-shadow: 0 0 18px rgba(255, 255, 255, 0.5); box-shadow: 0 0 18px rgba(255, 255, 255, 0.5); }

.letter-slot.filled { cursor: pointer; color: #FFE875; background-color: rgba(255, 255, 255, 0.14); border-bottom: 10px solid #FFE875; padding: 0 0.08em; -webkit-box-shadow: 0 8px 24px rgba(0, 15, 65, 0.28); box-shadow: 0 8px 24px rgba(0, 15, 65, 0.28); }

.letter-slot.filled:hover { background-color: rgba(255, 255, 255, 0.24); }

.letter-slot.filled:active { -webkit-transform: scale(0.92); transform: scale(0.92); }

/* Pop-in animation when a letter is placed */
.letter-slot.pop-in { -webkit-animation: slotPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); animation: slotPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }

@-webkit-keyframes slotPop { 0% { -webkit-transform: scale(0.75); transform: scale(0.75); opacity: 0.5; }
  100% { -webkit-transform: scale(1); transform: scale(1); opacity: 1; } }

@keyframes slotPop { 0% { -webkit-transform: scale(0.75); transform: scale(0.75); opacity: 0.5; }
  100% { -webkit-transform: scale(1); transform: scale(1); opacity: 1; } }
/* Shake animation when user clicks HOÀN TẤT with empty slot(s) */
.letter-slot.shake { -webkit-animation: slotShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; animation: slotShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; border-bottom-color: #FF5252; }

.letter-slot.shake::after { background: #FF5252; -webkit-box-shadow: 0 0 22px rgba(255, 82, 82, 0.85); box-shadow: 0 0 22px rgba(255, 82, 82, 0.85); }

@-webkit-keyframes slotShake { 10%,
    90% { -webkit-transform: translateX(-6px); transform: translateX(-6px); }
  20%,
    80% { -webkit-transform: translateX(8px); transform: translateX(8px); }
  30%,
    50%,
    70% { -webkit-transform: translateX(-10px); transform: translateX(-10px); }
  40%,
    60% { -webkit-transform: translateX(10px); transform: translateX(10px); } }

@keyframes slotShake { 10%,
    90% { -webkit-transform: translateX(-6px); transform: translateX(-6px); }
  20%,
    80% { -webkit-transform: translateX(8px); transform: translateX(8px); }
  30%,
    50%,
    70% { -webkit-transform: translateX(-10px); transform: translateX(-10px); }
  40%,
    60% { -webkit-transform: translateX(10px); transform: translateX(10px); } }
/* Instruction Text */
.step2-instruction { font-size: 36px; font-weight: 500; line-height: 1.38; color: #FFFFFF; margin-bottom: 34px; text-shadow: 0 2px 12px rgba(0, 15, 60, 0.4); }

/* 6-Letter Choice Tray */
#letter-choices { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; gap: 12px; }

.letter-tile { width: 89px; height: 89px; background-color: #FFFFFF; color: #0A0A0A; border: none; border-radius: 0; font-family: 'Montserrat', sans-serif; font-size: 61px; font-weight: 700; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; cursor: pointer; -webkit-box-shadow: 0 10px 24px rgba(0, 12, 48, 0.35), inset 0 -4px 0 rgba(0, 0, 0, 0.08); box-shadow: 0 10px 24px rgba(0, 12, 48, 0.35), inset 0 -4px 0 rgba(0, 0, 0, 0.08); -webkit-transition: opacity 0.2s ease, background-color 0.2s ease, -webkit-transform 0.14s cubic-bezier(0.25, 0.8, 0.25, 1), -webkit-box-shadow 0.2s ease; transition: opacity 0.2s ease, background-color 0.2s ease, -webkit-transform 0.14s cubic-bezier(0.25, 0.8, 0.25, 1), -webkit-box-shadow 0.2s ease; transition: transform 0.14s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease; transition: transform 0.14s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, -webkit-transform 0.14s cubic-bezier(0.25, 0.8, 0.25, 1), -webkit-box-shadow 0.2s ease; -ms-touch-action: manipulation; touch-action: manipulation; }

.letter-tile:hover:not(.used) { background-color: #F4F7FF; -webkit-transform: translateY(-4px); transform: translateY(-4px); -webkit-box-shadow: 0 14px 28px rgba(0, 12, 48, 0.45), inset 0 -4px 0 rgba(0, 45, 156, 0.14); box-shadow: 0 14px 28px rgba(0, 12, 48, 0.45), inset 0 -4px 0 rgba(0, 45, 156, 0.14); }

.letter-tile:active:not(.used) { -webkit-transform: scale(0.93); transform: scale(0.93); }

.letter-tile.used { opacity: 0.28; background-color: #D8E0F0; color: #3A4560; cursor: default; pointer-events: none; -webkit-transform: scale(0.94); transform: scale(0.94); -webkit-box-shadow: none; box-shadow: none; }

/* Bottom-Right Submit Button (HOÀN TẤT) */
.step2-submit-wrap { position: absolute; right: 98px; bottom: 84px; z-index: 20; }

#btn-submit { min-width: 380px; width: 100%; padding: 0 0; background-color: transparent; border-width: 0; }
#btn-submit img { display: block; width: 100%; }

/* ========================================================================== 7. STEP 3: MÀN HÌNH ĐÁP ÁN (#screen-step-3) -------------------------------------------------------------------------- PRODUCTION IMAGE SWAP: Uses the same Hai Phong sunset & flamboyant flowers image as Step 1, darkened with a semi-transparent overlay. ========================================================================== */
#screen-step-3 { background-color: #161822; background-image: url("../images/screen-1.jpg"); background-size: cover; background-position: center; }

.step3-dark-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 4; pointer-events: none; }

/* Golden Confetti Layer (Visible Only on Correct State) */
#confetti-layer { position: absolute; inset: 0; z-index: 12; pointer-events: none; overflow: hidden; display: none; }

#screen-step-3.state-correct #confetti-layer { display: block; }

.confetti-ribbon { position: absolute; top: -120px; background: linear-gradient(135deg, #FFF3B0 0%, #F5C542 42%, #D49B1A 75%, #FFE47A 100%); border-radius: 4px; -webkit-box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28); opacity: 0.95; -webkit-animation-name: confettiFall; animation-name: confettiFall; -webkit-animation-timing-function: linear; animation-timing-function: linear; -webkit-animation-iteration-count: infinite; animation-iteration-count: infinite; }

.confetti-ribbon.blurred { -webkit-filter: blur(3px); filter: blur(3px); opacity: 0.85; }

@-webkit-keyframes confettiFall { 0% { -webkit-transform: translate3d(0, -140px, 0) rotateZ(0deg) rotateX(0deg) rotateY(0deg); transform: translate3d(0, -140px, 0) rotateZ(0deg) rotateX(0deg) rotateY(0deg); }
  25% { -webkit-transform: translate3d(38px, 280px, 0) rotateZ(75deg) rotateX(90deg) rotateY(45deg); transform: translate3d(38px, 280px, 0) rotateZ(75deg) rotateX(90deg) rotateY(45deg); }
  50% { -webkit-transform: translate3d(-28px, 620px, 0) rotateZ(160deg) rotateX(180deg) rotateY(120deg); transform: translate3d(-28px, 620px, 0) rotateZ(160deg) rotateX(180deg) rotateY(120deg); }
  75% { -webkit-transform: translate3d(32px, 920px, 0) rotateZ(250deg) rotateX(270deg) rotateY(210deg); transform: translate3d(32px, 920px, 0) rotateZ(250deg) rotateX(270deg) rotateY(210deg); }
  100% { -webkit-transform: translate3d(-15px, 1260px, 0) rotateZ(360deg) rotateX(360deg) rotateY(360deg); transform: translate3d(-15px, 1260px, 0) rotateZ(360deg) rotateX(360deg) rotateY(360deg); } }

@keyframes confettiFall { 0% { -webkit-transform: translate3d(0, -140px, 0) rotateZ(0deg) rotateX(0deg) rotateY(0deg); transform: translate3d(0, -140px, 0) rotateZ(0deg) rotateX(0deg) rotateY(0deg); }
  25% { -webkit-transform: translate3d(38px, 280px, 0) rotateZ(75deg) rotateX(90deg) rotateY(45deg); transform: translate3d(38px, 280px, 0) rotateZ(75deg) rotateX(90deg) rotateY(45deg); }
  50% { -webkit-transform: translate3d(-28px, 620px, 0) rotateZ(160deg) rotateX(180deg) rotateY(120deg); transform: translate3d(-28px, 620px, 0) rotateZ(160deg) rotateX(180deg) rotateY(120deg); }
  75% { -webkit-transform: translate3d(32px, 920px, 0) rotateZ(250deg) rotateX(270deg) rotateY(210deg); transform: translate3d(32px, 920px, 0) rotateZ(250deg) rotateX(270deg) rotateY(210deg); }
  100% { -webkit-transform: translate3d(-15px, 1260px, 0) rotateZ(360deg) rotateX(360deg) rotateY(360deg); transform: translate3d(-15px, 1260px, 0) rotateZ(360deg) rotateX(360deg) rotateY(360deg); } }
/* Centered Result Modal Card */
.result-modal-wrapper { position: absolute; inset: 0; z-index: 15; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; padding-top: 28px; }

.result-card { position: relative; width: 980px; min-height: 465px; background: rgba(246, 247, 250, 0.75); border: 3px solid rgba(255, 255, 255, 0.95); border-radius: 36px; -webkit-box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42), inset 0 2px 6px rgba(255, 255, 255, 0.9); box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42), inset 0 2px 6px rgba(255, 255, 255, 0.9); padding: 132px 68px 66px; text-align: center; -webkit-transform: scale(0.92); transform: scale(0.92); opacity: 0; -webkit-transition: opacity 0.35s ease, -webkit-transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); transition: opacity 0.35s ease, -webkit-transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease, -webkit-transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }

#screen-step-3.active .result-card { -webkit-transform: scale(1); transform: scale(1); opacity: 1; }

/* Subtle Floral Watermark Inside Bottom-Right of Card */
.card-watermark { position: absolute; right: 0; bottom: 0; width: 310px; height: 290px; border-bottom-right-radius: 34px; overflow: hidden; pointer-events: none; opacity: 0.08; }

/* Top-Center Glossy 3D Status Badge */
.status-badge { position: absolute; top: -98px; left: 50%; -webkit-transform: translateX(-50%); transform: translateX(-50%); width: 196px; height: 196px; border-radius: 50%; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; }

.status-badge img { width: 100%; display: block; }

/* Correct State Styling */
#screen-step-3.state-correct .status-badge { background: radial-gradient(circle at 34% 28%, #2C6BFF 0%, #0038B8 58%, #00237A 100%); }

/* Wrong State Styling */
#screen-step-3.state-wrong .status-badge { background: radial-gradient(circle at 34% 28%, #FF555E 0%, #E61E2A 58%, #A80E18 100%); }

.result-title { position: relative; z-index: 2; font-size: 59px; font-weight: 800; line-height: 1.35; color: #424566; text-transform: uppercase; margin-bottom: 20px; }

#screen-step-3.state-wrong .result-title { font-size: 64px; margin-top: 12px; margin-bottom: 44px; }

.result-subtitle { position: relative; z-index: 2; font-size: 27px; font-weight: 400; line-height: 1.48; color: #424566; margin-bottom: 44px; }

#screen-step-3.state-wrong .result-subtitle { display: none; }

.btn-back { position: relative; z-index: 2; min-width: 334px; padding: 0 0; color: #FFFFFF; border-width: 0; background-color: transparent; }
.btn-back img { display: block; width: 100%; }

#screen-step-1 { background-image: url("../images/screen-1.jpg"); background-size: 100% 100%; }

.btn-start { background-color: transparent; border-width: 0; max-width: 383px; width: 100%; }
.btn-start img { display: block; width: 100%; height: auto; }

#screen-step-3 .result-card { display: none; }
#screen-step-3.state-correct .result-card-correct { display: block; }
#screen-step-3.state-wrong .result-card-wrong { display: block; }

/*# sourceMappingURL=style.css.map */