/* ==========================================================================
   Cohesive Retro Game CSS for Ho Thuy Thanh Duong Interactive Portfolio
   Strictly synchronized with Robby Leonardi's 2D Game Aesthetic
   Zero Tofu Boxes - 100% Unicode & Vietnamese Support
   ========================================================================== */

:root {
  --primary-accent: #f39c12;
  --secondary-accent: #e74c3c;
  --text-gold: #ffd32a;
  --text-cyan: #00d2d3;
  --game-font-title: 'Montserrat', 'Segoe UI', Tahoma, Arial, sans-serif;
  --game-font-sub: 'Nunito', 'Segoe UI', Tahoma, Arial, sans-serif;
  --ribbon-font: 'Montserrat', 'Segoe UI', Tahoma, Arial, sans-serif;
  --body-font: 'Nunito', 'Segoe UI', Tahoma, Arial, sans-serif;
}

/* Force clean font on all custom text */
.banner-text-a, .banner-text-b, .banner-text-c,
.portfolio-modal-title, .modal-caption,
.flower-card-title, .stall-title, .creature-title,
.school-name-text, .scoreboard-header,
.custom-hero-title, .stall-btn, .banner-action-btn,
.creature-header-badge, .school-roof-yellow, .school-roof-blue,
.award-title, .award-date, .award-org, .award-action-btn,
.stall-desc, .fair-stall-roof, .underwater-text-card h2,
.flower-text-card h2, .play-again-btn, .custom-ribbon-text,
.custom-game-title, .rib-mid, .school-badge-ribbon {
  font-family: var(--game-font-title) !important;
}

/* Ensure character (Robby) is ALWAYS in front of all stage elements, cards, stalls */
#robby-container {
  z-index: 50 !important;
  pointer-events: none !important;
}

#balloon {
  z-index: 55 !important;
}

#contact-container {
  z-index: 70 !important;
}

/* Highlight numbers in bright gold */
.highlight, .highlight-number {
  color: #ffdd59 !important;
  font-weight: 800 !important;
  text-shadow: 0 0 6px rgba(255, 221, 89, 0.7);
  padding: 0 3px;
  display: inline-block;
}

/* 3D Intro Title */
.custom-hero-title {
  position: absolute;
  top: 115px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-family: var(--game-font-title);
  font-weight: 900;
  text-transform: uppercase;
  z-index: 4;
  pointer-events: none;
  white-space: nowrap;
}

.custom-hero-title .title-line-1 {
  font-size: 68px;
  line-height: 72px;
  color: #f37121;
  text-shadow: 
    3px 3px 0 #b23b00,
    6px 6px 0 #8c2e00,
    9px 9px 0 #662200,
    11px 11px 0 #401500,
    14px 14px 8px rgba(0,0,0,0.35);
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.custom-hero-title .title-line-2 {
  font-size: 58px;
  line-height: 62px;
  color: #c0392b;
  text-shadow: 
    3px 3px 0 #962d22,
    6px 6px 0 #6d2018,
    9px 9px 0 #4a1510,
    11px 11px 0 #280b09,
    14px 14px 8px rgba(0,0,0,0.35);
  letter-spacing: 2px;
}

/* Folded Ribbon Component */
.retro-ribbon-bar {
  display: inline-flex;
  align-items: center;
  height: 50px;
  position: relative;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.25));
}

.retro-ribbon-bar .rib-left {
  width: 40px;
  height: 50px;
  background-image: url(../image/ribbon-left.png);
  background-size: cover;
  flex-shrink: 0;
}

.retro-ribbon-bar .rib-mid {
  height: 38px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ed1c24;
  font-family: var(--game-font-title);
  font-weight: 800;
  color: #fff;
  font-size: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.retro-ribbon-bar .rib-right {
  width: 40px;
  height: 50px;
  background-image: url(../image/ribbon-right.png);
  background-size: cover;
  flex-shrink: 0;
}

/* ==========================================================================
   Level 1: Schools & Academic Scoreboard (Retro 2D Game Style)
   ========================================================================== */
#level1-custom-container {
  position: absolute;
  left: 2550px;
  bottom: 20%;
  width: 1200px;
  height: 500px;
  display: flex;
  align-items: flex-end;
  gap: 30px;
  z-index: 8;
}

/* 2D School Buildings */
.school-building {
  position: relative;
  box-shadow: 0 12px 25px rgba(0,0,0,0.3);
  border: 4px solid #1e272e;
  border-bottom: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 14px 18px;
  transition: transform 0.25s ease;
}

.school-building:hover {
  transform: translateY(-6px);
}

/* School 1: THCS Trần Hưng Đạo (Yellow brick, terracotta tiled roof) */
.school-building.yellow-school {
  width: 270px;
  height: 380px;
  background: 
    repeating-linear-gradient(0deg, rgba(230, 126, 34, 0.15) 0px, rgba(230, 126, 34, 0.15) 1px, transparent 1px, transparent 18px),
    repeating-linear-gradient(90deg, rgba(230, 126, 34, 0.12) 0px, rgba(230, 126, 34, 0.12) 1px, transparent 1px, transparent 36px),
    linear-gradient(180deg, #fef2cc 0%, #fed330 100%);
  border-color: #d35400;
  border-radius: 8px 8px 0 0;
}

/* Roof & Clock Tower for Yellow School */
.school-roof-clocktower {
  position: absolute;
  top: -65px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 65px;
  background: #e67e22;
  border: 4px solid #d35400;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.school-roof-clocktower::before {
  content: '';
  position: absolute;
  top: -24px;
  border-left: 35px solid transparent;
  border-right: 35px solid transparent;
  border-bottom: 24px solid #c0392b;
}

.school-clock-face {
  width: 28px;
  height: 28px;
  background: #ffffff;
  border: 3px solid #7f1d1d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* School 2: Phổ Thông Năng Khiếu (Grand academic ivory facade, royal blue pediment) */
.school-building.blue-school {
  width: 340px;
  height: 430px;
  background: 
    repeating-linear-gradient(90deg, rgba(9, 132, 227, 0.08) 0px, rgba(9, 132, 227, 0.08) 2px, transparent 2px, transparent 40px),
    linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
  border-color: #0c2461;
  border-radius: 4px 4px 0 0;
}

/* Pediment roof for Blue School */
.pediment-roof {
  position: absolute;
  top: -46px;
  left: -12px;
  right: -12px;
  height: 46px;
  background: #0984e3;
  border: 4px solid #0c2461;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.pediment-trim {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: #0c2461;
}

/* School columns */
.blue-school .school-column-left,
.blue-school .school-column-right {
  position: absolute;
  top: 15px;
  bottom: 0;
  width: 14px;
  background: linear-gradient(90deg, #0984e3 0%, #74b9ff 50%, #0984e3 100%);
  border: 2px solid #0c2461;
}
.blue-school .school-column-left { left: 8px; }
.blue-school .school-column-right { right: 8px; }

/* Circular Emblem Medal for PTNK Logo */
.school-emblem-seal {
  width: 110px;
  height: 110px;
  background: #ffffff;
  border: 4px solid #0984e3;
  box-shadow: 0 4px 12px rgba(9, 132, 227, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 12px auto;
  position: relative;
}

.school-emblem-seal img {
  width: 95px;
  height: 95px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: contrast(1.15) brightness(1.02);
}

.school-badge-ribbon {
  width: 100%;
  padding: 6px 4px;
  font-family: var(--game-font-title);
  font-weight: 800;
  color: #fff;
  font-size: 13px;
  text-align: center;
  letter-spacing: 1px;
  border-radius: 4px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  margin-bottom: 10px;
}

.yellow-school .school-badge-ribbon {
  background: #e67e22;
  border: 2px solid #b33939;
}

.blue-school .school-badge-ribbon {
  background: #0984e3;
  border: 2px solid #0c2461;
}

.school-name-text {
  font-family: var(--game-font-title) !important;
  font-size: 15px;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 4px;
  text-align: center;
}

.school-sub-text {
  font-family: var(--body-font) !important;
  font-size: 12px;
  font-weight: 600;
  color: #576574;
  line-height: 1.35;
  text-align: center;
}

/* School Windows */
.school-windows-row {
  display: flex;
  gap: 12px;
  margin: 8px 0;
}

.school-arched-window {
  width: 28px;
  height: 42px;
  background: #74b9ff;
  border: 3px solid #2c3e50;
  border-radius: 14px 14px 0 0;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.3);
}

/* School Door */
.school-door {
  width: 44px;
  height: 52px;
  background: #8b4513;
  border: 3px solid #3e2723;
  border-radius: 4px 4px 0 0;
  margin-top: 6px;
  position: relative;
}
.school-door::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 6px;
  width: 6px;
  height: 6px;
  background: #ffd32a;
  border-radius: 50%;
}

/* ==========================================================================
   Academic Scoreboard (Arcade High Score Quest Board)
   ========================================================================== */
.academic-scoreboard {
  width: 320px;
  background: #141b24;
  border: 5px solid #ffd32a;
  box-shadow: 
    0 0 0 3px #141b24,
    0 10px 30px rgba(0,0,0,0.5);
  border-radius: 14px;
  padding: 16px 18px;
  color: #fff;
  font-family: var(--body-font) !important;
  margin-bottom: 5px;
}

.scoreboard-header {
  font-family: var(--game-font-title) !important;
  font-weight: 800;
  color: #ffd32a;
  font-size: 18px;
  text-align: center;
  border-bottom: 2px dashed rgba(255, 211, 42, 0.4);
  padding-bottom: 8px;
  margin-bottom: 12px;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(255, 211, 42, 0.5);
}

.gpa-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gpa-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.gpa-row strong {
  color: #f1f2f6;
  font-weight: 700;
}

.gpa-pill {
  background: linear-gradient(135deg, #2ed573 0%, #10ac84 100%);
  color: #ffffff;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(46, 213, 115, 0.4);
}

.test-bars-container {
  margin-top: 14px;
  border-top: 2px dashed rgba(255, 255, 255, 0.15);
  padding-top: 12px;
}

.test-bar-item {
  margin-bottom: 12px;
}

.test-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 4px;
  font-weight: 700;
}

.test-progress-track {
  width: 100%;
  height: 16px;
  background: #2f3542;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
}

.test-progress-fill {
  height: 100%;
  border-radius: 8px;
  transition: width 1.2s ease;
}

.test-progress-fill.sat-bar {
  background: linear-gradient(90deg, #ff4757 0%, #ffa502 100%);
  box-shadow: 0 0 8px rgba(255, 71, 87, 0.6);
}

.test-progress-fill.ielts-bar {
  background: linear-gradient(90deg, #00d2d3 0%, #2ed573 100%);
  box-shadow: 0 0 8px rgba(0, 210, 211, 0.6);
}

/* ==========================================================================
   Level 2: Awards & Certificates (Hot Air Balloon Station & Hanging Arcade Banners)
   ========================================================================== */
#level2-awards-container {
  position: absolute;
  left: 3950px;
  bottom: 20%;
  width: 1550px;
  height: 560px;
  z-index: 8;
  pointer-events: auto;
}

/* Hot Air Balloon Launch Platform (matching image1.png) */
.level2-balloon-launchpad {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 220px;
  height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  z-index: 4;
}

.launchpad-flag {
  background: #ed1c24;
  color: #fff;
  font-family: var(--game-font-title) !important;
  font-weight: 800;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  border: 2px solid #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  margin-bottom: 6px;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
  white-space: nowrap;
}

.level2-sky-balloon {
  position: relative;
  width: 200px;
  height: 350px;
  background-image: url(../image/balloon.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
  animation: gentleFloat 4s ease-in-out infinite alternate;
  filter: drop-shadow(0 8px 15px rgba(0,0,0,0.25));
}

@keyframes gentleFloat {
  0% { transform: translateY(0px) rotate(-1deg); }
  100% { transform: translateY(-20px) rotate(1.5deg); }
}

.launchpad-wooden-base {
  width: 140px;
  height: 24px;
  background: linear-gradient(180deg, #bcaaa4 0%, #8d6e63 100%);
  border: 3px solid #3e2723;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  margin-top: -8px;
}

/* Sky Header Ribbon */
.level2-sky-ribbon {
  position: absolute;
  left: 235px;
  top: 0px;
  z-index: 5;
}

/* Horizontal Sky Columns for Banners (2 neat rows on wooden flagpoles) */
.level2-banners-gallery {
  position: absolute;
  left: 235px;
  top: 56px;
  display: grid;
  grid-template-rows: 215px 215px;
  grid-auto-flow: column;
  grid-auto-columns: 220px;
  column-gap: 16px;
  row-gap: 18px;
  width: 1400px;
}

/* Individual Award Banner (Exact copy of Robby Leonardi banner art) */
.custom-award-banner {
  width: 220px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
  transition: transform 0.25s ease;
  position: relative;
}

.custom-award-banner:hover {
  transform: translateY(-4px);
}

.custom-award-banner .banner-top-a,
.custom-award-banner .banner-top-b {
  position: relative;
  width: 100%;
  height: 18px;
  background-size: 100% 100%;
}

.custom-award-banner .banner-middle-a,
.custom-award-banner .banner-middle-b {
  position: relative;
  width: calc(100% - 24px);
  left: 12px;
  padding: 8px 10px;
  box-sizing: border-box;
}

.custom-award-banner .banner-middle-a {
  background-color: #f7941d;
}

.custom-award-banner .banner-middle-b {
  background-color: #f26d7d;
}

.custom-award-banner .banner-bottom-a,
.custom-award-banner .banner-bottom-b {
  position: relative;
  left: 12px;
  width: calc(100% - 24px);
  height: 26px;
  background-size: 100% 100%;
}

.custom-award-banner .award-date {
  font-family: var(--game-font-title) !important;
  font-weight: 800;
  font-size: 12px;
  color: #fff;
  margin-bottom: 2px;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.2);
}

.custom-award-banner .award-dash-line {
  width: 100%;
  height: 1px;
  border-top: 1px dashed rgba(255,255,255,0.7);
  margin: 3px 0 4px;
}

.custom-award-banner .award-title {
  font-family: var(--game-font-title) !important;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 3px;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.25);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.custom-award-banner .award-org {
  font-family: var(--body-font) !important;
  font-size: 11px;
  color: #fefefe;
  margin-bottom: 6px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-award-banner .award-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  color: #d35400;
  font-family: var(--game-font-title) !important;
  font-weight: 800;
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 12px;
  border: 2px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
}

.custom-award-banner.banner-theme-pink .award-action-btn {
  color: #c0392b;
}

.custom-award-banner .award-action-btn:hover {
  background: #2c3e50;
  color: #ffffff;
  border-color: #2c3e50;
  transform: scale(1.04);
}

.custom-award-banner .wooden-post {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  width: 8px;
  height: 38px;
  background: linear-gradient(90deg, #8d6e63 0%, #bcaaa4 50%, #5d4037 100%);
  border: 1px solid #3e2723;
  z-index: -1;
}

/* ==========================================================================
   Level 3: Start-up Fair Stalls (Hội Chợ Tí Hon - Striped Awnings)
   ========================================================================== */
#level3-stalls-container {
  position: absolute;
  left: 6250px;
  bottom: 20%;
  width: 900px;
  height: 500px;
  display: flex;
  align-items: flex-end;
  gap: 40px;
  z-index: 8;
}

.fair-stall {
  position: relative;
  width: 410px;
  background: #ffffff;
  border: 4px solid #2c3e50;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  padding: 24px 18px 18px;
  transition: transform 0.25s ease;
}

.fair-stall:hover {
  transform: translateY(-6px);
}

.fair-stall-roof {
  position: absolute;
  top: -46px;
  left: -12px;
  right: -12px;
  height: 48px;
  border-radius: 10px 10px 0 0;
  border: 4px solid #2c3e50;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--game-font-title) !important;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.stall-pink .fair-stall-roof {
  background: repeating-linear-gradient(45deg, #ff6b81, #ff6b81 20px, #ffffff 20px, #ffffff 40px);
  color: #c0392b;
  text-shadow: 1px 1px 0 #fff;
}

.stall-amber .fair-stall-roof {
  background: repeating-linear-gradient(45deg, #ffa502, #ffa502 20px, #ffffff 20px, #ffffff 40px);
  color: #b7791f;
  text-shadow: 1px 1px 0 #fff;
}

.stall-badge {
  display: inline-block;
  background: #2ed573;
  color: #1e272e;
  font-family: var(--game-font-title) !important;
  font-weight: 800;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 8px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.stall-title {
  font-family: var(--game-font-title) !important;
  font-weight: 800;
  font-size: 16px;
  color: #2f3542;
  margin-bottom: 6px;
}

.stall-desc {
  font-family: var(--body-font) !important;
  font-size: 13px;
  color: #57606f;
  line-height: 1.45;
  margin-bottom: 12px;
}

.stall-thumbnails {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.stall-thumb {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #ced6e0;
}

.stall-btn {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: #3742fa;
  color: #ffffff;
  text-align: center;
  border-radius: 8px;
  font-family: var(--game-font-title) !important;
  font-weight: 800;
  font-size: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(55, 66, 250, 0.4);
  transition: all 0.2s ease;
}

.stall-btn:hover {
  background: #1e272e;
  transform: translateY(-2px);
}

/* Ocean Diving Transition Signpost at 7200px */
.retro-ocean-sign {
  position: absolute;
  bottom: 20%;
  width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 8;
  margin-bottom: 20px;
}

.diving-board-arrow {
  margin-top: 10px;
  background: #141b24;
  color: #ffd32a;
  border: 3px solid #ffd32a;
  padding: 6px 16px;
  border-radius: 20px;
  font-family: var(--game-font-title) !important;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  animation: pulseBoard 1.5s ease-in-out infinite alternate;
}

@keyframes pulseBoard {
  0% { transform: translateY(0); }
  100% { transform: translateY(6px); }
}

/* ==========================================================================
   Level 4: Underwater Leadership Stations (Con Cá, Con Rùa, Con Cua)
   Strictly matched with image2.png
   ========================================================================== */
.underwater-station {
  position: absolute;
  bottom: 80px;
  width: 780px;
  height: 480px;
  display: flex;
  align-items: flex-end;
  gap: 24px;
  z-index: 10;
}

/* Red ribbon on top of underwater station */
.underwater-station-ribbon {
  position: absolute;
  top: -55px;
  left: 0;
  z-index: 11;
}

/* Dark tech container matching original .experience-text-container */
.underwater-text-card {
  width: 420px;
  background-color: #333333;
  padding: 22px 24px;
  border: 8px solid #666666;
  border-radius: 6px;
  color: #ffffff;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
  font-family: var(--body-font) !important;
}

.underwater-text-card h2 {
  font-family: var(--game-font-title) !important;
  font-weight: 800;
  font-size: 24px;
  line-height: 1.15;
  color: #ffffff;
  margin: 0 0 6px 0;
  text-transform: uppercase;
}

.underwater-text-card .station-sub {
  font-family: var(--game-font-sub) !important;
  font-weight: 700;
  font-size: 14px;
  color: #00d2d3;
  margin-bottom: 12px;
}

.underwater-tabs-row {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.underwater-tab-btn {
  background: #444444;
  color: #ffffff;
  border: 2px solid #777777;
  padding: 6px 10px;
  border-radius: 4px;
  font-family: var(--game-font-title) !important;
  font-weight: 800;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.underwater-tab-btn.active, .underwater-tab-btn:hover {
  background: #ffd32a;
  color: #1e272e;
  border-color: #ffd32a;
}

.underwater-bullets {
  font-size: 13px;
  line-height: 1.5;
  padding-left: 18px;
  margin: 0 0 14px 0;
  color: #f1f2f6;
}

.underwater-bullets li {
  margin-bottom: 6px;
}

.underwater-btn {
  display: inline-block;
  background: #ed1c24;
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 20px;
  font-family: var(--game-font-title) !important;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 10px rgba(237, 28, 36, 0.4);
  transition: transform 0.2s ease;
}

.underwater-btn:hover {
  transform: scale(1.05);
}

/* Pie Chart Marine Creature Graphic (Right side of station, like image2.png) */
.marine-creature-graphic {
  position: relative;
  width: 290px;
  height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.creature-pie-body {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 8px solid #ffffff;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  overflow: hidden;
  background: conic-gradient(
    #ed1c24 0% 70%,
    #8e44ad 70% 85%,
    #0984e3 85% 100%
  );
}

.creature-pie-text-1 {
  position: absolute;
  left: 14px;
  top: 75px;
  font-family: var(--game-font-title) !important;
  font-weight: 800;
  font-size: 20px;
  color: #ffffff;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
  text-align: center;
}

.creature-pie-text-2 {
  position: absolute;
  right: 14px;
  top: 32px;
  font-family: var(--game-font-title) !important;
  font-weight: 800;
  font-size: 13px;
  color: #ffffff;
}

.creature-pie-text-3 {
  position: absolute;
  right: 14px;
  bottom: 35px;
  font-family: var(--game-font-title) !important;
  font-weight: 800;
  font-size: 13px;
  color: #ffffff;
}

/* Creature face & fins */
.creature-face-mask {
  position: absolute;
  left: -20px;
  width: 110px;
  height: 110px;
  background: #00d2d3;
  border-radius: 50%;
  border: 6px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 2;
}

.creature-fin-tail {
  position: absolute;
  right: -25px;
  width: 70px;
  height: 100px;
  background: #0984e3;
  clip-path: polygon(0% 50%, 100% 0%, 100% 100%);
  border-radius: 4px;
}

/* ==========================================================================
   Level 5: Other Activities (Cánh Đồng Hoa)
   Strictly matched with image4.png
   ========================================================================== */
.flower-activity-station {
  position: absolute;
  bottom: 20%;
  width: 820px;
  height: 520px;
  display: flex;
  align-items: flex-end;
  gap: 30px;
  z-index: 8;
}

.flower-station-ribbon {
  position: absolute;
  top: -45px;
  left: 0;
  z-index: 9;
}

/* Dark tech container like image4.png */
.flower-text-card {
  width: 440px;
  background-color: #333333;
  padding: 24px 28px;
  border: 8px solid #666666;
  border-radius: 6px;
  color: #ffffff;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  font-family: var(--body-font) !important;
}

.flower-text-card h2 {
  font-family: var(--game-font-title) !important;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.25;
  color: #ffffff;
  margin: 0 0 6px 0;
  text-transform: uppercase;
}

.flower-text-card .flower-date-sub {
  font-family: var(--game-font-sub) !important;
  font-weight: 700;
  font-size: 14px;
  color: #ffd32a;
  margin-bottom: 12px;
}

.flower-text-card p {
  font-size: 13px;
  line-height: 1.55;
  color: #ecf0f1;
  margin-bottom: 16px;
}

.flower-details-btn {
  display: inline-block;
  color: #ffffff;
  font-family: var(--game-font-title) !important;
  font-weight: 800;
  font-size: 13px;
  padding: 9px 22px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

.flower-details-btn:hover {
  transform: scale(1.06);
}

/* Giant Flower Graphic with Pie Chart matching image4.png */
.giant-flower-graphic {
  position: relative;
  width: 320px;
  height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

/* Tall Green Stem */
.flower-stem {
  width: 14px;
  height: 240px;
  background: #27ae60;
  border-radius: 7px;
  border: 3px solid #1e824c;
  position: relative;
}

.flower-leaf-left {
  position: absolute;
  left: -40px;
  top: 100px;
  width: 45px;
  height: 25px;
  background: #2ecc71;
  border: 3px solid #1e824c;
  border-radius: 50% 0 50% 0;
  transform: rotate(-30deg);
}

.flower-leaf-right {
  position: absolute;
  right: -40px;
  top: 60px;
  width: 45px;
  height: 25px;
  background: #2ecc71;
  border: 3px solid #1e824c;
  border-radius: 0 50% 0 50%;
  transform: rotate(30deg);
}

/* Blooming Petals Head with central Pie Chart */
.flower-bloom-head {
  position: absolute;
  top: 20px;
  width: 250px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flower-petals-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.flower-pie-core {
  position: relative;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 6px solid #ffffff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  background: conic-gradient(
    #e74c3c 0% 70%,
    #8e44ad 70% 85%,
    #3498db 85% 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.flower-core-badge {
  background: #ffffff;
  color: #2c3e50;
  font-family: var(--game-font-title) !important;
  font-weight: 800;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  text-transform: uppercase;
}

/* ==========================================================================
   Ending: Contact & Play Again
   ========================================================================== */
#custom-contact-info-box {
  background: rgba(255, 255, 255, 0.96);
  border: 5px solid #2c3e50;
  border-radius: 16px;
  padding: 26px 32px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  font-family: var(--body-font) !important;
  margin-top: 15px;
}

.play-again-btn {
  display: inline-block;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: #ffffff;
  font-family: var(--game-font-title) !important;
  font-weight: 800;
  font-size: 18px;
  padding: 14px 28px;
  border: 4px solid #ffffff;
  border-radius: 30px;
  box-shadow: 0 6px 15px rgba(231, 76, 60, 0.5);
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.5px;
}

.play-again-btn:hover {
  background: #2c3e50;
  transform: translateY(-4px) scale(1.03);
}

/* ==========================================================================
   Modal Lightbox
   ========================================================================== */
.portfolio-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.portfolio-modal-overlay.active {
  display: flex;
}

.portfolio-modal-content {
  background: #ffffff;
  border: 5px solid #2c3e50;
  border-radius: 16px;
  max-width: 850px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0,0,0,0.5);
  animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.portfolio-modal-header {
  background: #f1f2f6;
  border-bottom: 3px solid #ced6e0;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portfolio-modal-title {
  font-family: var(--game-font-title) !important;
  font-weight: 800;
  font-size: 20px;
  color: #2c3e50;
  margin: 0;
}

.portfolio-modal-close {
  background: #ff4757;
  color: #fff;
  border: none;
  font-size: 20px;
  font-weight: bold;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.portfolio-modal-close:hover {
  transform: scale(1.15);
}

.portfolio-modal-body {
  padding: 20px;
  overflow-y: auto;
  font-family: var(--body-font) !important;
}

.portfolio-modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.modal-gallery-item {
  border: 2px solid #ced6e0;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f9fa;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.modal-gallery-item:hover {
  transform: translateY(-4px);
  border-color: #3742fa;
}

.modal-gallery-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.modal-gallery-item .item-caption {
  font-size: 11px;
  padding: 6px 8px;
  color: #2f3542;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* Lightbox full-size viewer */
.image-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.92);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.image-lightbox-overlay.active {
  display: flex;
}

.image-lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border: 4px solid #fff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.lightbox-close-btn {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #fff;
  font-size: 45px;
  cursor: pointer;
  user-select: none;
}
