@charset "UTF-8";

/* ==========================================================================
   昆明观鸥达人大挑战 · 自然探索游戏样式
   字体：阿里妈妈方圆体（圆润、加粗、工整清爽，拒绝歪斜畸变）
   顶部：5个场景带精美缩略图 + 独立“地图”按键
   ========================================================================== */

/* 1. 阿里妈妈方圆体加载 */
@font-face {
  font-family: "AlimamaFangYuanTi";
  src: url("../shared/fonts/AlimamaFangYuanTiVF-Thin.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "GullRounded";
  src: url("../shared/fonts/AlimamaFangYuanTiVF-Thin.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --font-round: "AlimamaFangYuanTi", "GullRounded", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  /* 柔和护眼高品质马卡龙纸质色系 */
  --paper-cream: #faf7ee;
  --paper-cream-border: #e2d7c0;
  
  --paper-yellow: #fdf6e7;
  --paper-yellow-border: #e4ce9b;
  --paper-yellow-shadow: #c8b078;
  
  --paper-blue: #eaf3fb;
  --paper-blue-border: #accce8;
  --paper-blue-shadow: #8bb1d2;
  
  --paper-green: #eaf5eb;
  --paper-green-border: #abd4b2;
  --paper-green-shadow: #88b790;
  
  --paper-coral: #faeee9;
  --paper-coral-border: #e8ada1;
  
  --tape-color: rgba(228, 208, 178, 0.75);
  
  --ink-dark: #1e2837;
  --ink-muted: #5a697e;
  
  --color-red: #c64832;
  --color-red-dark: #983220;
  --color-green: #297a4a;
  --color-green-dark: #1b5834;
  
  --shadow-clean-card: 0 12px 32px rgba(18, 30, 48, 0.18), 0 2px 6px rgba(18, 30, 48, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-round) !important;
  font-weight: 600;
  font-variation-settings: 'BEVL' 100;
  background-color: #273747;
  color: var(--ink-dark);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  user-select: none;
}

body * {
  font-family: var(--font-round) !important;
}

h1, h2, h3, h4, strong, b {
  font-weight: 750 !important;
}

/* --------------------------------------------------------------------------
   网页上方：5个场景缩略图 + 独立地图按键（工整美观，其它不要）
   -------------------------------------------------------------------------- */
.top-scenes-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
  background: linear-gradient(180deg, rgba(20, 32, 45, 0.85) 0%, rgba(20, 32, 45, 0) 100%);
  pointer-events: none;
}

/* 5 个场景导航组 */
.scenes-nav-group {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.scenes-nav-group::-webkit-scrollbar {
  display: none;
}

.scene-tab-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  background: rgba(250, 247, 238, 0.94);
  border: 2px solid #dcd1be;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scene-tab-card:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: #baa78e;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.scene-tab-card.is-active {
  background: #ffffff;
  border-color: var(--color-red);
  box-shadow: 0 0 0 2px var(--color-red), 0 6px 16px rgba(198, 72, 50, 0.35);
  transform: translateY(-2px);
}

.scene-tab-thumb {
  width: 44px;
  height: 30px;
  border-radius: 6px;
  overflow: hidden;
  background: #3b4e63;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.scene-tab-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-tab-title {
  font-size: 13px;
  font-weight: 750;
  color: var(--ink-dark);
}

.scene-tab-card.is-active .scene-tab-title {
  color: var(--color-red);
}

/* 独立地图按键 */
.map-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: #ffffff;
  border: 2px solid #d4c5ae;
  border-radius: 14px;
  color: var(--ink-dark);
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 4px 0 #bcaea0, 0 8px 16px rgba(0, 0, 0, 0.25);
  pointer-events: auto;
  transition: all 0.15s;
}

.map-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #bcaea0, 0 10px 18px rgba(0, 0, 0, 0.3);
  border-color: var(--color-red);
  color: var(--color-red);
}

.map-action-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #bcaea0;
}

.map-btn-icon {
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   背景层
   -------------------------------------------------------------------------- */
.game-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.scenic-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.scenic-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.4s ease-in-out;
}

.scenic-tint {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 35%, rgba(18, 30, 42, 0.4) 100%);
}

/* --------------------------------------------------------------------------
   工整圆润卡片基础（直边平正、圆角光滑、无歪扭畸变）
   -------------------------------------------------------------------------- */
.clean-paper-card {
  position: relative;
  background: var(--paper-cream);
  border: 2px solid var(--paper-cream-border);
  border-radius: 20px;
  box-shadow: var(--shadow-clean-card);
}

/* 工整平直的半透明胶带 */
.clean-washi-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 24px;
  background: var(--tape-color);
  border: 1px solid rgba(180, 155, 120, 0.5);
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 20;
}

/* --------------------------------------------------------------------------
   游戏主竞技场布局
   -------------------------------------------------------------------------- */
.game-arena-view {
  position: relative;
  z-index: 20;
  width: 100%;
  height: 100%;
  padding: 82px 40px 30px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: center;
  max-width: 1260px;
  margin: 0 auto;
}

/* 左侧：主题目卡片 */
.question-card {
  padding: 34px 38px 26px;
  display: flex;
  flex-direction: column;
}

.sticker-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.title-tags-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* “昆明观鸥达人大挑战” 专属标题徽章 */
.challenge-title-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 750;
  color: #fff;
  background: var(--color-red);
  padding: 3px 10px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(198, 72, 50, 0.35);
}

.stage-info-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0e6d2;
  padding: 3px 12px;
  border-radius: 12px;
  border: 1px solid #dfd1bb;
}

.stage-info-pill strong {
  font-size: 13px;
  color: #1e3625;
}

.stage-info-pill small {
  font-size: 11px;
  color: var(--color-red);
  font-weight: 700;
  border-left: 1px solid #d4c4aa;
  padding-left: 6px;
}

.progress-pill-badge {
  font-size: 13px;
  font-weight: 750;
  color: #fff;
  background: #2b3947;
  padding: 3px 12px;
  border-radius: 12px;
}

/* 题目文本（圆润加粗、清晰大字） */
.question-title-text {
  font-size: 24px;
  line-height: 1.5;
  color: #1b2636;
  font-weight: 750;
  margin-bottom: 22px;
}

/* 3 个圆润加粗彩色选项按钮 */
.option-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 16px;
}

.option-btn-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 18px;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  border: 2px solid transparent;
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}

.option-btn-item:hover:not(:disabled) {
  transform: translateY(-2px);
}

.option-btn-item:active:not(:disabled) {
  transform: translateY(2px);
}

/* 选项颜色分工 */
.btn-yellow {
  background: var(--paper-yellow);
  border-color: var(--paper-yellow-border);
  box-shadow: 0 4px 0 var(--paper-yellow-shadow);
}
.btn-blue {
  background: var(--paper-blue);
  border-color: var(--paper-blue-border);
  box-shadow: 0 4px 0 var(--paper-blue-shadow);
}
.btn-green {
  background: var(--paper-green);
  border-color: var(--paper-green-border);
  box-shadow: 0 4px 0 var(--paper-green-shadow);
}

.option-btn-item:hover:not(:disabled).btn-yellow {
  box-shadow: 0 6px 0 var(--paper-yellow-shadow);
}
.option-btn-item:hover:not(:disabled).btn-blue {
  box-shadow: 0 6px 0 var(--paper-blue-shadow);
}
.option-btn-item:hover:not(:disabled).btn-green {
  box-shadow: 0 6px 0 var(--paper-green-shadow);
}

.opt-key-circle {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 2px solid #b8a688;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 750;
  color: #3b2c1b;
}

.opt-content-text {
  font-size: 16px;
  line-height: 1.45;
  font-weight: 650;
  color: #1e2837;
  flex-grow: 1;
}

/* 立体方框勾选盒 [ □ ] */
.opt-check-box {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 2.5px solid #8e7c65;
  background: #ffffff;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.08);
}

/* 选中对错状态 */
.option-btn-item.is-correct {
  background: #e4f4e7 !important;
  border-color: var(--color-green) !important;
  box-shadow: 0 4px 0 var(--color-green-dark) !important;
}

.option-btn-item.is-correct .opt-check-box {
  background: var(--color-green);
  border-color: var(--color-green);
}

.option-btn-item.is-correct .opt-check-box::after {
  content: "✔";
  color: #fff;
  font-size: 17px;
  font-weight: 750;
}

.option-btn-item.is-wrong {
  background: #fae4de !important;
  border-color: var(--color-red) !important;
  box-shadow: 0 4px 0 var(--color-red-dark) !important;
}

.option-btn-item.is-wrong .opt-check-box {
  background: var(--color-red);
  border-color: var(--color-red);
}

.option-btn-item.is-wrong .opt-check-box::after {
  content: "✘";
  color: #fff;
  font-size: 15px;
  font-weight: 750;
}

/* 底部操作行 */
.sticker-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 2px dashed #ded4c0;
}

.result-status-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 750;
}

.result-status-tag.is-correct {
  color: var(--color-green);
}

.result-status-tag.is-wrong {
  color: var(--color-red);
}

.chunky-next-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 26px;
  background: var(--color-red);
  border: 2px solid #8e2b1b;
  border-radius: 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 4px 0 #7e2416, 0 8px 16px rgba(198, 72, 50, 0.3);
  transition: all 0.15s;
}

.chunky-next-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #7e2416, 0 10px 20px rgba(198, 72, 50, 0.35);
}

.chunky-next-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #7e2416;
}

/* --------------------------------------------------------------------------
   右侧：红嘴鸥 IP 角色与工整说明气泡
   -------------------------------------------------------------------------- */
.agent-character-dock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.speech-bubble-card {
  background: var(--paper-blue);
  border: 2px solid var(--paper-blue-border);
  padding: 18px 20px;
  width: 100%;
}

.bubble-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.agent-avatar-tag {
  font-size: 14px;
  font-weight: 750;
  color: #173852;
}

.agent-mood-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-red);
}

.bubble-text {
  font-size: 14px;
  line-height: 1.5;
  color: #1e2e42;
  font-weight: 600;
}

.bubble-fact-row {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1.5px dashed #b7d1e8;
  font-size: 12px;
  color: #4b627a;
}

.gull-character-stage {
  width: 210px;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gull-sprite {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(15, 25, 40, 0.28));
  animation: gentleBob 3.6s ease-in-out infinite;
}

@keyframes gentleBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* --------------------------------------------------------------------------
   场景选择全景地图弹窗
   -------------------------------------------------------------------------- */
.stage-modal-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  background: rgba(18, 30, 42, 0.65);
  backdrop-filter: blur(8px);
  transition: opacity 0.25s, visibility 0.25s;
}

.stage-modal-view.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.stage-modal-board {
  position: relative;
  width: 100%;
  max-width: 1140px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--paper-cream);
  border: 3px solid #d4c5ae;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  padding: 36px 40px;
}

.modal-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 24px;
  background: var(--tape-color);
  border: 1px solid rgba(180, 155, 120, 0.5);
  border-radius: 4px;
}

.modal-board-header {
  text-align: center;
  margin-bottom: 26px;
  position: relative;
}

.board-kicker {
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 750;
  color: var(--color-red);
}

.modal-board-header h2 {
  font-size: 28px;
  color: #1e3625;
  font-weight: 750;
  margin: 6px 0;
}

.modal-board-header h2 span {
  color: var(--color-red);
}

.modal-board-header p {
  font-size: 14px;
  color: var(--ink-muted);
}

.board-close-btn {
  position: absolute;
  top: -8px;
  right: 0;
  width: 36px;
  height: 36px;
  background: #ffffff;
  border: 2px solid #d4c5ae;
  border-radius: 50%;
  font-size: 20px;
  color: #3b2c1b;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.15s;
}

.board-close-btn:hover {
  background: var(--color-red);
  color: #fff;
  border-color: var(--color-red);
}

.stage-sticker-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.stage-sticker-item {
  background: #ffffff;
  border: 2px solid #ded4c0;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.stage-sticker-item:hover {
  transform: translateY(-5px);
  border-color: var(--color-red);
  box-shadow: 0 10px 22px rgba(198, 72, 50, 0.25);
}

.stage-sticker-item.is-active {
  border-color: var(--color-red);
  box-shadow: 0 0 0 2px var(--color-red), 0 8px 20px rgba(198, 72, 50, 0.25);
}

.stage-thumb-box {
  position: relative;
  width: 100%;
  height: 108px;
  background: #3b4e63;
}

.stage-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage-num-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(25, 38, 52, 0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  padding: 2px 8px;
  border-radius: 6px;
}

.stage-sticker-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.stage-sticker-info h4 {
  font-size: 15px;
  font-weight: 750;
  color: #1b2636;
  margin-bottom: 2px;
}

.stage-sticker-info small {
  color: var(--color-red);
  font-weight: 700;
  font-size: 11px;
  margin-bottom: 6px;
}

.stage-sticker-info p {
  font-size: 12px;
  line-height: 1.45;
  color: #5d6d82;
  margin-bottom: 12px;
  flex-grow: 1;
}

.stage-play-btn {
  width: 100%;
  padding: 8px 0;
  background: #f5eed8;
  border: 1.5px solid #dcd0bc;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 750;
  color: #3f3120;
  cursor: pointer;
  box-shadow: 0 3px 0 #baa88c;
  transition: all 0.15s;
}

.stage-sticker-item:hover .stage-play-btn {
  background: var(--color-red);
  border-color: var(--color-red);
  color: #fff;
  box-shadow: 0 3px 0 #7e2416;
}

/* --------------------------------------------------------------------------
   通关结算卡
   -------------------------------------------------------------------------- */
.stage-complete-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 75;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18, 30, 42, 0.7);
  backdrop-filter: blur(8px);
}

.stage-complete-view.hidden {
  display: none;
}

.complete-certificate-card {
  width: 100%;
  max-width: 660px;
  background: var(--paper-cream);
  padding: 38px;
}

.certificate-inner {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 26px;
  align-items: center;
}

.cert-avatar-col img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.3));
}

.cert-kicker {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 750;
  color: var(--color-red);
}

.cert-info-col h2 {
  font-size: 25px;
  font-weight: 750;
  color: #172a1d;
  margin: 4px 0 14px;
}

.cert-score-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 2px solid #ded4c0;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
}

.score-badge-circle {
  width: 66px;
  height: 66px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--paper-coral);
  border: 2px solid var(--color-red);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-val {
  font-size: 26px;
  font-weight: 750;
  color: var(--color-red);
  line-height: 1;
}

.score-max {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
}

.score-desc-group h3 {
  font-size: 16px;
  font-weight: 750;
  color: #172a1d;
  margin-bottom: 3px;
}

.score-desc-group p {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.45;
}

.cert-btn-group {
  display: flex;
  gap: 14px;
}

.chunky-btn {
  padding: 11px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-retry {
  background: #ffffff;
  border: 2px solid #bcaea0;
  color: #3b2c1b;
  box-shadow: 0 4px 0 #baa88c;
}

.btn-retry:hover {
  background: #f7f1e6;
  transform: translateY(-2px);
}

.btn-forward {
  background: var(--color-red);
  border: 2px solid #8e2b1b;
  color: #fff;
  box-shadow: 0 4px 0 #7e2416;
}

.btn-forward:hover {
  background: #b03a26;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   响应式调整
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .scenes-nav-group {
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .scene-tab-card {
    padding: 4px 8px 4px 4px;
  }
  .scene-tab-thumb {
    width: 36px;
    height: 24px;
  }
  .scene-tab-title {
    font-size: 12px;
  }
  .stage-sticker-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .game-arena-view {
    grid-template-columns: 1fr 280px;
    gap: 20px;
    padding: 76px 20px 20px;
  }
  .gull-character-stage {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 768px) {
  .top-scenes-bar {
    padding: 0 14px;
  }
  .game-arena-view {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .agent-character-dock {
    flex-direction: row-reverse;
    align-items: center;
  }
  .gull-character-stage {
    width: 120px;
    height: 120px;
  }
  .certificate-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cert-score-box {
    flex-direction: column;
  }
}
