*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 163, 89, 0.35) rgba(10, 13, 18, 0.5);
}

*::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

*::-webkit-scrollbar-track {
  background: rgba(10, 13, 18, 0.45);
  border-radius: 8px;
}

*::-webkit-scrollbar-thumb {
  background: rgba(212, 163, 89, 0.35);
  border-radius: 8px;
  border: 1px solid rgba(212, 163, 89, 0.15);
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 163, 89, 0.65);
}

:root {
  --bg-base: #1A1E24;
  --bg-surface: #222730;
  --bg-card: rgba(34, 39, 48, 0.90);
  --color-amber: #D4A359;
  --color-amber-light: #EDD39E;
  --color-amber-glow: rgba(212, 163, 89, 0.35);
  --color-sage: #7A8F7C;
  --color-sage-light: #9BB09D;
  --color-walnut: #3D2D24;
  --text-main: #F7F5F0;
  --text-muted: #A3ABB7;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(212, 163, 89, 0.28);
  --font-main: 'Golos Text', 'Plus Jakarta Sans', 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --navel-top: 71.5vh;
  --navel-left: 50%;
}

html, body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  font-family: var(--font-main);
  background-color: #1A1E24;
  color: #F7F5F0;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  position: relative;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 45%, rgba(10, 12, 16, 0.72) 100%);
}

#fluid-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  display: block !important;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2;
  display: block !important;
}

.stars {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2;
  display: block !important;
  background-image: 
    radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 60px 80px, #EDD39E, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 120px 50px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 180px 140px, #D4A359, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 240px 90px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 320px 220px, #EDD39E, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 380px 110px, #ffffff, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 420px 420px;
  opacity: 0.55;
  animation: starsTwinkle 7s ease-in-out infinite alternate;
}

@keyframes starsTwinkle {
  0% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.70;
    transform: scale(1.02);
  }
  100% {
    opacity: 0.40;
    transform: scale(0.98);
  }
}

.ambient-mesh-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  -webkit-filter: blur(85px);
  will-change: transform;
  mix-blend-mode: screen;
  opacity: 0.85;
  transition: background 0.5s ease, opacity 0.5s ease;
}

.ambient-orb-1 {
  width: 780px;
  height: 780px;
  top: -180px;
  left: -160px;
  background: radial-gradient(circle, rgba(212, 163, 89, 0.42) 0%, rgba(61, 45, 36, 0.45) 45%, transparent 70%);
  animation: floatOrb1 20s ease-in-out infinite alternate;
}

.ambient-orb-2 {
  width: 860px;
  height: 860px;
  bottom: -220px;
  right: -180px;
  background: radial-gradient(circle, rgba(122, 143, 124, 0.38) 0%, rgba(42, 54, 45, 0.40) 45%, transparent 70%);
  animation: floatOrb2 25s ease-in-out infinite alternate;
}

.ambient-orb-3 {
  width: 640px;
  height: 640px;
  top: 35%;
  left: 32%;
  background: radial-gradient(circle, rgba(100, 68, 50, 0.40) 0%, rgba(212, 163, 89, 0.26) 50%, transparent 70%);
  animation: floatOrb3 18s ease-in-out infinite alternate;
}

.ambient-orb-4 {
  width: 720px;
  height: 720px;
  bottom: 15%;
  left: -80px;
  background: radial-gradient(circle, rgba(50, 58, 70, 0.45) 0%, rgba(34, 37, 42, 0.60) 55%, transparent 72%);
  animation: floatOrb4 22s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(140px, 90px, 0) scale(1.18);
  }
  100% {
    transform: translate3d(60px, 160px, 0) scale(0.92);
  }
}

@keyframes floatOrb2 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-160px, -110px, 0) scale(1.22);
  }
  100% {
    transform: translate3d(-90px, -50px, 0) scale(0.88);
  }
}

@keyframes floatOrb3 {
  0% {
    transform: translate3d(0, 0, 0) scale(0.95);
  }
  50% {
    transform: translate3d(-100px, 120px, 0) scale(1.15);
  }
  100% {
    transform: translate3d(120px, -80px, 0) scale(1.05);
  }
}

@keyframes floatOrb4 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(130px, -90px, 0) scale(1.12);
  }
  100% {
    transform: translate3d(50px, 80px, 0) scale(0.96);
  }
}

.container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  height: 100vh;
  padding: 20px 8px 20px;
}

.screen {
  display: none;
  width: 100%;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.screen.active {
  display: flex;
  animation: screenFadeIn 0.35s ease forwards;
}

@keyframes screenFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cardGradientDrift {
  0% {
    background-position: 0% 15%;
  }
  50% {
    background-position: 100% 85%;
  }
  100% {
    background-position: 0% 15%;
  }
}

@keyframes buttonGradientFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.scroll-container {
  width: 100%;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px 12px 100px;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0px,
    black 36px,
    black calc(100% - 44px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0px,
    black 36px,
    black calc(100% - 44px),
    transparent 100%
  );
}

.header {
  text-align: center;
  width: 100%;
  margin-top: 38px;
  margin-bottom: 14px;
  position: relative;
  z-index: 5;
  padding: 6px 14px 8px;
}

.header::before {
  content: "";
  position: absolute;
  top: -8px;
  bottom: -6px;
  left: 4%;
  right: 4%;
  background: radial-gradient(
    ellipse 80% 80% at 50% 50%,
    rgba(10, 13, 18, 0.72) 0%,
    rgba(10, 13, 18, 0.46) 50%,
    rgba(10, 13, 18, 0.12) 80%,
    transparent 100%
  );
  filter: blur(14px);
  -webkit-filter: blur(14px);
  pointer-events: none;
  z-index: -1;
  border-radius: 24px;
}

.subtitle {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #FFE0A3;
  margin-bottom: 6px;
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 2px 6px rgba(0, 0, 0, 0.90),
    0 0 10px rgba(212, 163, 89, 0.45);
}

.title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  color: #FFFFFF;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.95),
    0 4px 16px rgba(0, 0, 0, 0.85),
    0 0 22px rgba(0, 0, 0, 0.60);
}

.hint {
  font-size: 13px;
  color: #E2E8F0;
  font-weight: 500;
  min-height: 18px;
  line-height: 1.5;
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 2px 6px rgba(0, 0, 0, 0.85);
}

.card {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 400px;
  margin: 12px auto 0;
  padding: 22px 20px;
  border-radius: 22px;
  background: linear-gradient(
    145deg,
    rgba(30, 35, 44, 0.72) 0%,
    rgba(20, 24, 30, 0.78) 45%,
    rgba(32, 28, 24, 0.75) 75%,
    rgba(22, 28, 24, 0.76) 100%
  );
  background-size: 240% 240%;
  background-position: 0% 15%;
  animation: cardGradientDrift 16s ease-in-out infinite alternate;
  border: 1px solid rgba(212, 163, 89, 0.32);
  border-top: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.35), 0 0 18px rgba(212, 163, 89, 0.10), inset 0 1px 1.5px rgba(255, 255, 255, 0.22);
  text-align: left;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
}

.card::after,
.visual-board-card::after,
.transition-card::after,
.main-insight-card::after {
  content: "";
  position: absolute;
  top: calc(100% - 10px);
  left: 10%;
  right: 10%;
  height: 85px;
  background: radial-gradient(
    ellipse 48% 75% at 50% 0%,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.48) 32%,
    rgba(0, 0, 0, 0.20) 62%,
    rgba(0, 0, 0, 0.05) 84%,
    transparent 100%
  );
  filter: blur(12px);
  -webkit-filter: blur(12px);
  transform-origin: 50% 0%;
  transform: perspective(220px) rotateX(-24deg) scaleX(1.15);
  pointer-events: none;
  z-index: -1;
  border-radius: 0 0 28px 28px;
}

.rules-card p, .cell-card p, .end-card p {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 10px;
  color: #eef7f8;
}

.rules-card ul {
  padding-left: 18px;
  margin-top: 6px;
}

.rules-card li {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 6px;
  color: #eef7f8;
}

.form-instruction {
  font-size: 13px;
  line-height: 1.5;
  color: #C4B29E;
}

.input-group {
  width: 100%;
  margin-bottom: 12px;
}

.input-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #D4A359;
  margin-bottom: 6px;
}

.text-input-field {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(16, 20, 26, 0.95), rgba(10, 13, 18, 0.98));
  border: 1px solid rgba(212, 163, 89, 0.28);
  color: #FAF8F5;
  font-family: inherit;
  font-size: 14.5px;
  outline: none;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(255, 235, 195, 0.08);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  user-select: text;
}

.text-input-field:hover {
  border-color: rgba(212, 163, 89, 0.55);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.65), 0 0 12px rgba(212, 163, 89, 0.18);
}

.text-input-field:focus {
  border-color: #D4A359;
  box-shadow: 0 0 0 3px rgba(212, 163, 89, 0.22), 0 0 16px rgba(212, 163, 89, 0.3), inset 0 2px 6px rgba(0, 0, 0, 0.7);
  background: linear-gradient(180deg, rgba(20, 25, 33, 0.96), rgba(12, 16, 22, 0.98));
}

.textarea-field {
  width: 100%;
  min-height: 105px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(16, 20, 26, 0.95), rgba(10, 13, 18, 0.98));
  border: 1px solid rgba(212, 163, 89, 0.28);
  color: #FAF8F5;
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.5;
  resize: none;
  outline: none;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(255, 235, 195, 0.08);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  margin-top: 12px;
  user-select: text;
}

.textarea-field:hover {
  border-color: rgba(212, 163, 89, 0.55);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.65), 0 0 12px rgba(212, 163, 89, 0.18);
}

.textarea-field:focus {
  border-color: #D4A359;
  box-shadow: 0 0 0 3px rgba(212, 163, 89, 0.22), 0 0 16px rgba(212, 163, 89, 0.3), inset 0 2px 6px rgba(0, 0, 0, 0.7);
  background: linear-gradient(180deg, rgba(20, 25, 33, 0.96), rgba(12, 16, 22, 0.98));
}

.intention-display-card {
  text-align: center;
}

.card-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #D4A359;
  margin-bottom: 6px;
}

.intention-text {
  font-size: 14px;
  font-weight: 700;
  color: #FAF8F5;
  line-height: 1.4;
  font-style: italic;
  margin-bottom: 8px;
}

.attempt-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(212, 163, 89, 0.15);
  color: #EDD39E;
  border: 1px solid rgba(212, 163, 89, 0.4);
}

.dice-area {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex: 1;
}

.entry-dice-area,
.game-dice-area {
  position: relative;
  margin: 16px auto 32px auto;
  z-index: 20;
  width: 140px;
  height: 140px;
  padding: 0;
  min-height: unset;
  flex: initial;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.card.ai-feedback-card:not([style*="none"]) ~ .entry-dice-area {
  margin-top: 14px;
}

.entry-dice-area .diceWrap,
.game-dice-area .diceWrap {
  margin: 0;
  position: relative;
  z-index: 22;
}

.entry-dice-area .glow-ring,
.game-dice-area .glow-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 21;
}

.entry-dice-area .result-display,
.game-dice-area .result-display {
  position: absolute;
  top: calc(100% - 16px);
  left: 50%;
  transform: translateX(-50%) scale(0.5);
  white-space: nowrap;
  pointer-events: none;
  z-index: 25;
}

.entry-dice-area .result-display.visible,
.game-dice-area .result-display.visible {
  transform: translateX(-50%) scale(1);
}

.entry-dice-area .status-ticker,
.game-dice-area .status-ticker {
  position: absolute;
  top: calc(100% + 22px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(92vw, 380px);
  white-space: nowrap;
  pointer-events: none;
  z-index: 25;
  margin: 0;
}

#screen-entry_roll .scroll-container,
#screen-game_roll .scroll-container {
  padding-bottom: 100px;
}

.glow-ring {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 163, 89, 0.22) 0%, rgba(142, 202, 214, 0.08) 45%, transparent 70%);
  animation: pulseGlow 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%       { transform: scale(1.1); opacity: 1; }
}

.diceWrap {
  position: relative;
  width: 140px;
  height: 140px;
  cursor: pointer;
  transition: transform 0.15s ease;
  perspective: 600px;
  transform-style: preserve-3d;
  transform: scale(0.68);
}

.diceWrap:active {
  transform: scale(0.64);
}

.diceWrap::after {
  position: absolute;
  content: "";
  width: 75%;
  height: 8%;
  top: 95%;
  left: 12.5%;
  background: rgba(18, 45, 50, 0.4);
  border-radius: 100%;
  filter: blur(8px);
}

.diceFace {
  box-sizing: border-box;
  position: absolute;
  width: 100px;
  height: 100px;
  background-color: var(--diceBg);
  border: 1.5px solid var(--diceBorder);
  border-radius: 24px;
  transform-style: preserve-3d;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 12px rgba(212, 163, 89, 0.25), 0 4px 16px rgba(0, 0, 0, 0.35);
}

.diceFace::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  background-color: var(--diceBgLight);
  border-radius: 24px;
  transform: translateZ(-1px);
  opacity: 0.3;
}

.diceFace::after {
  position: absolute;
  content: "";
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -10px;
  background-color: var(--dotColor2);
  border-radius: 100%;
  transform: translateZ(1px);
}

.front  { transform: translateZ(50px); }
.up     { transform: rotateX(90deg) translateZ(50px); }
.left   { transform: rotateY(-90deg) translateZ(50px); }
.right  { transform: rotateY(90deg) translateZ(50px); }
.bottom { transform: rotateX(-90deg) translateZ(50px); }
.back   { transform: rotateX(180deg) translateZ(50px); }

.front::after {
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  background-color: var(--dotColor1);
  box-shadow: 0 0 10px 3px rgba(223, 156, 116, 0.6);
}
.up::after {
  margin: -30px 0 0 -30px;
  box-shadow:
    40px 40px 0 0 var(--dotColor2),
    0 0 6px 2px rgba(229, 209, 190, 0.4),
    40px 40px 6px 2px rgba(229, 209, 190, 0.4);
}
.left::after {
  margin: -40px 0 0 -40px;
  box-shadow:
    30px 30px 0 0 var(--dotColor2),
    60px 60px 0 0 var(--dotColor2),
    0 0 6px 2px rgba(229, 209, 190, 0.3),
    30px 30px 6px 2px rgba(229, 209, 190, 0.3),
    60px 60px 6px 2px rgba(229, 209, 190, 0.3);
}
.right::after {
  margin: -30px 0 0 -30px;
  background-color: var(--dotColor1);
  box-shadow:
    40px 0 0 0 var(--dotColor1),
    0 40px 0 0 var(--dotColor1),
    40px 40px 0 0 var(--dotColor1),
    0 0 8px 3px rgba(223, 156, 116, 0.5),
    40px 0 8px 3px rgba(223, 156, 116, 0.5),
    0 40px 8px 3px rgba(223, 156, 116, 0.5),
    40px 40px 8px 3px rgba(223, 156, 116, 0.5);
}
.bottom::after {
  margin: -36px 0 0 -36px;
  box-shadow:
    26px 26px 0 0 var(--dotColor2),
    52px 52px 0 0 var(--dotColor2),
    52px 0 0 0 var(--dotColor2),
    0 52px 0 0 var(--dotColor2),
    0 0 6px 2px rgba(229, 209, 190, 0.3),
    26px 26px 6px 2px rgba(229, 209, 190, 0.3),
    52px 52px 6px 2px rgba(229, 209, 190, 0.3),
    52px 0 6px 2px rgba(229, 209, 190, 0.3),
    0 52px 6px 2px rgba(229, 209, 190, 0.3);
}
.back::after {
  margin: -40px 0 0 -30px;
  box-shadow:
    40px 0 0 0 var(--dotColor2),
    0 30px 0 0 var(--dotColor2),
    40px 30px 0 0 var(--dotColor2),
    0 60px 0 0 var(--dotColor2),
    40px 60px 0 0 var(--dotColor2),
    0 0 6px 2px rgba(229, 209, 190, 0.3),
    40px 0 6px 2px rgba(229, 209, 190, 0.3),
    0 30px 6px 2px rgba(229, 209, 190, 0.3),
    40px 30px 6px 2px rgba(229, 209, 190, 0.3),
    0 60px 6px 2px rgba(229, 209, 190, 0.3),
    40px 60px 6px 2px rgba(229, 209, 190, 0.3);
}

.dice {
  position: absolute;
  width: 100px;
  height: 100px;
  top: calc(50% - 50px);
  left: calc(50% - 50px);
  transform-style: preserve-3d;
  transform: rotate3d(0, 0.9, 0.9, 90deg);

  --diceBg: rgba(16, 20, 26, 0.38);
  --diceBgLight: rgba(212, 163, 89, 0.15);
  --diceBorder: rgba(212, 163, 89, 0.75);
  --dotColor1: #FFF5E4;
  --dotColor2: #F5E2C4;
}

.dice.rolling {
  animation: rotatePerFace 3s cubic-bezier(0.42, 1.57, 0.62, 0.86) infinite;
}

.dice.throw {
  animation: rotateDice 0.7s ease-in reverse, throwDice 1s linear;
}

.dice.disabled {
  pointer-events: none;
}

@keyframes rotateDice {
  30% {
    transform: rotate3d(1, 1, 1, 0deg);
  }
  100% {
    transform: rotate3d(1, 1, 1, 720deg);
  }
}

@keyframes rotatePerFace {
  16% { transform: rotate3d(-0.1, 0.6, -0.4, 180deg); }
  32% { transform: rotate3d(-0.85, -0.42, 0.73, 180deg); }
  48% { transform: rotate3d(-0.8, 0.3, -0.75, 180deg); }
  64% { transform: rotate3d(0.3, 0.45, 0.9, 180deg); }
  80% { transform: rotate3d(-0.16, 0.6, 0.18, 180deg); }
  100% { transform: rotate3d(-0.1, 0.3, -1, 180deg); }
}

@keyframes throwDice {
  20% {
    margin-top: -100px;
  }
  40% {
    margin-top: 0px;
  }
  60% {
    margin-top: -30px;
  }
  80% {
    margin-top: 0px;
  }
  85% {
    margin-top: -10px;
  }
  90% {
    margin-top: 0px;
  }
  95% {
    margin-top: -3px;
  }
  100% {
    margin-top: 0px;
  }
}

.result-display {
  font-size: 44px;
  font-weight: 700;
  color: #FFEBC3;
  min-height: 52px;
  text-align: center;
  text-shadow: 0 0 20px rgba(212, 163, 89, 0.9);
  letter-spacing: 2px;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.result-display.visible {
  opacity: 1;
  transform: scale(1);
}

.dice-feedback-card {
  width: 100%;
  max-width: 380px;
  margin: 0 auto 12px auto;
  padding: 14px 18px;
  background: rgba(22, 27, 34, 0.85);
  border: 1px solid rgba(212, 163, 89, 0.45);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  text-align: left;
  box-sizing: border-box;
  animation: fadeIn 0.35s ease forwards;
}

.dice-feedback-card .feedback-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: rgba(212, 163, 89, 0.22);
  color: #FFE066;
  border: 1px solid rgba(212, 163, 89, 0.5);
  margin-bottom: 8px;
}

.dice-feedback-card .feedback-badge.warning {
  background: rgba(235, 87, 87, 0.22);
  color: #FFAAA6;
  border-color: rgba(235, 87, 87, 0.5);
}

.dice-feedback-card .feedback-badge.success {
  background: rgba(46, 204, 113, 0.22);
  color: #85E8B0;
  border-color: rgba(46, 204, 113, 0.5);
}

.dice-feedback-card .feedback-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: #F5E8D8;
  font-weight: 500;
}

.cell-image-container {
  width: 100%;
  max-width: 340px;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.cell-image {
  width: 100%;
  height: auto;
  display: block;
}

.question-card {
  text-align: left;
}

.question-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #d2beb0;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.question-text {
  font-size: 14px;
  line-height: 1.45;
  color: #f0eaff;
  font-weight: 600;
}

.cell-step {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.3s ease forwards;
}

.question-header-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  margin-bottom: 12px;
}

.question-cell-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.35;
  box-sizing: border-box;
  max-width: 100%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.question-cell-badge.start-badge {
  background: rgba(212, 163, 89, 0.16);
  border: 1px solid rgba(212, 163, 89, 0.38);
  color: #edd39e;
}

.question-cell-badge.arrow-target-badge {
  background: rgba(85, 230, 165, 0.14);
  border: 1px solid rgba(85, 230, 165, 0.35);
  color: #8ef3c3;
}

.question-cell-badge.snake-target-badge {
  background: rgba(242, 92, 84, 0.14);
  border: 1px solid rgba(242, 92, 84, 0.35);
  color: #fca5a0;
}

.question-title {
  font-size: 13px;
  font-weight: 700;
  color: #d2beb0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.question-text {
  font-size: 15px;
  line-height: 1.5;
  color: #f0eaff;
  font-weight: 500;
  margin-bottom: 16px;
  width: 100%;
}

.question-card {
  margin-top: clamp(48px, 10vh, 85px);
}

.form-card {
  margin-top: clamp(40px, 8vh, 75px);
}

.movement-log-card {
  max-height: 110px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.log-title {
  font-size: 11px;
  font-weight: 700;
  color: #d2beb0;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.log-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.log-line {
  font-size: 12px;
  line-height: 1.4;
  color: #eef7f8;
}

.path-display {
  background: rgba(7, 19, 23, 0.4);
  padding: 12px;
  border-radius: 12px;
  margin: 12px 0;
  border: 1px solid rgba(212, 163, 89, 0.22);
  width: 100%;
}

.path-title {
  font-size: 11px;
  font-weight: 700;
  color: #d2beb0;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.path-cells {
  font-size: 13px;
  color: #f0eaff;
  line-height: 1.4;
  font-weight: 600;
}

.end-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 340px;
  margin-top: 14px;
  align-items: stretch;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 340px;
  height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  color: #FAF8F5;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  font-size: 14px;
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
}

.tg-btn {
  background: linear-gradient(180deg, #121924 0%, #0A1017 100%) padding-box,
              linear-gradient(135deg, #74C0FC 0%, #1D72B8 50%, #74C0FC 100%) border-box;
  border: 1.5px solid transparent;
  color: #D0EBFF;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 16px rgba(29, 114, 184, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.tg-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7), 0 0 24px rgba(29, 114, 184, 0.45);
  color: #FFFFFF;
}

.ig-btn {
  background: linear-gradient(180deg, #24141A 0%, #170A0F 100%) padding-box,
              linear-gradient(135deg, #F06595 0%, #C2255C 50%, #FCC2D7 100%) border-box;
  border: 1.5px solid transparent;
  color: #FFDEEB;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 16px rgba(194, 37, 92, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.ig-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7), 0 0 24px rgba(194, 37, 92, 0.45);
  color: #FFFFFF;
}

.footer {
  position: relative;
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 10px;
}

.liquid-metal-btn-wrap {
  perspective: 1000px;
  perspective-origin: 50% 50%;
  display: inline-block;
  user-select: none;
  position: relative;
  width: 100%;
  max-width: 340px;
  height: 50px;
}

.liquid-metal-btn-3d {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: none;
  border-radius: 14px;
}

.liquid-metal-btn-3d:hover {
  transform: translateY(-1.5px);
}

.liquid-metal-label-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transform-style: preserve-3d;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: translateZ(16px);
  z-index: 30;
  pointer-events: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #EDD39E;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
}

.liquid-metal-label-layer.label-sage {
  color: #C2D1C4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

.liquid-metal-label-layer.label-walnut {
  color: #D6C2B4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

.liquid-metal-inner-pill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: translateZ(10px);
  z-index: 20;
  pointer-events: none;
  border-radius: 14px;
}

.liquid-metal-inner-core {
  position: absolute;
  inset: 2px;
  border-radius: 12px;
  background: linear-gradient(180deg, #181B20 0%, #101215 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08), inset 0 2px 4px rgba(0, 0, 0, 0.6);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.liquid-metal-inner-core.sage-core {
  background: linear-gradient(180deg, #161A17 0%, #0E120F 100%);
}

.liquid-metal-inner-core.walnut-core {
  background: linear-gradient(180deg, #1C1512 0%, #120E0C 100%);
}

.liquid-metal-shader-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: translateZ(0px);
  z-index: 10;
  border-radius: 14px;
}

.liquid-metal-shader-plate {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: #181b20;
  overflow: hidden;
  position: relative;
}

.liquid-metal-btn-3d:hover .liquid-metal-shader-plate {
  box-shadow: 0 10px 24px -2px rgba(0, 0, 0, 0.6), 0 0 16px rgba(212, 163, 89, 0.35);
}

.liquid-metal-btn-3d.is-pressed .liquid-metal-shader-plate {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7), 0 0 22px rgba(212, 163, 89, 0.45);
  transition: box-shadow 0.08s ease;
}

.liquid-metal-btn-3d:hover .liquid-metal-shader-plate.plate-sage {
  box-shadow: 0 10px 24px -2px rgba(0, 0, 0, 0.6), 0 0 16px rgba(122, 143, 124, 0.35);
}

.liquid-metal-btn-3d.is-pressed .liquid-metal-shader-plate.plate-sage {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7), 0 0 22px rgba(122, 143, 124, 0.45);
  transition: box-shadow 0.08s ease;
}

.liquid-metal-btn-3d:hover .liquid-metal-shader-plate.plate-walnut {
  box-shadow: 0 10px 24px -2px rgba(0, 0, 0, 0.6), 0 0 16px rgba(179, 130, 95, 0.35);
}

.liquid-metal-btn-3d.is-pressed .liquid-metal-shader-plate.plate-walnut {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7), 0 0 22px rgba(179, 130, 95, 0.45);
  transition: box-shadow 0.08s ease;
}

.liquid-metal-btn-3d.is-pressed {
  transform: translateY(2px) scale(0.97) !important;
  transition: transform 0.08s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.liquid-metal-btn-3d.is-pressed .liquid-metal-inner-pill {
  transform: translateZ(6px);
  transition: transform 0.08s ease;
}

.liquid-metal-btn-3d.is-pressed .liquid-metal-inner-core {
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.85), inset 0 1px 2px rgba(0, 0, 0, 0.6);
  filter: brightness(0.92);
  transition: all 0.08s ease;
}

.liquid-metal-btn-3d.is-pressed .liquid-metal-label-layer {
  transform: translateZ(18px) translateY(1.5px) scale(0.98);
  z-index: 35;
  transition: transform 0.08s ease;
}

.liquid-metal-canvas {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 14px;
}

.liquid-metal-click-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  z-index: 40;
  transform-style: preserve-3d;
  transform: translateZ(25px);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  border-radius: 14px;
  -webkit-tap-highlight-color: transparent;
}

.liquid-metal-click-overlay:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.liquid-metal-btn-wrap:has(.liquid-metal-click-overlay:disabled) {
  opacity: 0.45;
  pointer-events: none;
}

.liquid-ripple {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 235, 195, 0.6) 0%, rgba(212, 163, 89, 0.3) 40%, rgba(212, 163, 89, 0) 70%);
  pointer-events: none;
  animation: rippleAnimation 0.55s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

.liquid-ripple.ripple-sage {
  background: radial-gradient(circle, rgba(220, 240, 225, 0.6) 0%, rgba(122, 143, 124, 0.3) 40%, rgba(122, 143, 124, 0) 70%);
}

.liquid-ripple.ripple-walnut {
  background: radial-gradient(circle, rgba(240, 220, 205, 0.6) 0%, rgba(179, 130, 95, 0.3) 40%, rgba(179, 130, 95, 0) 70%);
}

@keyframes rippleAnimation {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.95;
  }
  60% {
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(22);
    opacity: 0;
  }
}

.roll-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 340px;
  padding: 14px 22px;
  border-radius: 14px;
  background: 
    linear-gradient(180deg, #181B20 0%, #101215 100%) padding-box,
    linear-gradient(135deg, #FFEBC3 0%, #D4A359 28%, #7A5318 50%, #D4A359 72%, #FFF4D9 100%) border-box;
  border: 1.5px solid transparent;
  color: #EDD39E;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65), 0 0 16px rgba(212, 163, 89, 0.35), inset 0 1px 1.5px rgba(255, 235, 195, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, filter 0.2s ease, color 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.roll-btn:hover {
  transform: translateY(-2px);
  color: #FFF2D6;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75), 0 0 22px rgba(212, 163, 89, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.35);
  background: 
    linear-gradient(180deg, #20242B 0%, #13161A 100%) padding-box,
    linear-gradient(135deg, #FFF0D4 0%, #E6BA75 28%, #916828 50%, #E6BA75 72%, #FFFFFF 100%) border-box;
}

.roll-btn:active {
  transform: translateY(1.5px) scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 12px rgba(212, 163, 89, 0.2), inset 0 2px 5px rgba(0, 0, 0, 0.75);
  filter: brightness(0.95);
}

.roll-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #A3ABB7;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: 14px;
  text-shadow: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.06);
  transition: all 0.25s ease;
}

.secondary-btn:hover {
  background: rgba(212, 163, 89, 0.12);
  border-color: rgba(212, 163, 89, 0.45);
  color: #EDD39E;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45), 0 0 16px rgba(212, 163, 89, 0.22);
}

.btn-icon {
  font-size: 18px;
  line-height: 1;
}

.btn-text {
  line-height: 1;
}

.footer-hint {
  font-size: 10px;
  color: #557279;
  text-align: center;
  letter-spacing: 0.5px;
}

.chakra-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #FFD2BF;
  background: linear-gradient(135deg, rgba(32, 18, 14, 0.88) 0%, rgba(20, 12, 10, 0.92) 100%);
  border: 1px solid rgba(247, 168, 132, 0.60);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.60),
    0 0 12px rgba(200, 122, 83, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95);
  margin-bottom: 8px;
}

.ai-card, .ai-feedback-card {
  background: rgba(20, 24, 32, 0.92);
  border: 1px solid rgba(212, 163, 89, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  margin-bottom: 12px;
}

.ai-header {
  font-size: 13px;
  font-weight: 700;
  color: #EDD39E;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-content {
  font-size: 13px;
  line-height: 1.6;
  color: #FAF8F5;
}

.path-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  background: rgba(229, 209, 190, 0.1);
  border: 1px solid rgba(229, 209, 190, 0.25);
  color: #e5d1be;
  margin: 3px 4px 3px 0;
}

.final-report-card {
  background: rgba(18, 42, 49, 0.85);
  border: 1px solid rgba(200, 122, 83, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  padding: 18px;
  margin-bottom: 16px;
}

.report-header {
  font-size: 15px;
  font-weight: 700;
  color: #f7a884;
  margin-bottom: 12px;
  text-align: center;
}

.report-body {
  font-size: 13px;
  line-height: 1.7;
  color: #eef7f8;
}

.report-section-h2 {
  font-size: 15px;
  font-weight: 700;
  color: #f7a884;
  margin: 16px 0 8px 0;
  line-height: 1.35;
  letter-spacing: 0.3px;
}

.report-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(247, 168, 132, 0.35), transparent);
  margin: 16px 0;
  border: none;
}

.report-p {
  font-size: 13px;
  line-height: 1.7;
  color: #eef7f8;
  margin: 0 0 10px 0;
}

.report-p:last-child {
  margin-bottom: 0;
}

.report-list {
  margin: 8px 0 12px 0;
}

.report-list-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: #eef7f8;
}

.report-bullet {
  color: #f7a884;
  font-size: 14px;
  line-height: 1.4;
  flex-shrink: 0;
}

.report-body strong {
  color: #FFEBC3;
  font-weight: 600;
}

.report-body em {
  color: #D4A359;
  font-style: italic;
}

.visual-board-card {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  margin: 10px auto 12px auto;
  padding: 12px 10px 10px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 20px;
  position: relative;
  z-index: 5;
  overflow: visible;
  box-sizing: border-box;
  animation: none;
  background: linear-gradient(
    140deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.04) 22%,
    rgba(16, 22, 32, 0.38) 50%,
    rgba(8, 12, 18, 0.52) 100%
  );
  backdrop-filter: blur(22px) saturate(180%) contrast(105%);
  -webkit-backdrop-filter: blur(22px) saturate(180%) contrast(105%);
  border: 1px solid rgba(212, 163, 89, 0.32);
  border-top: 1.5px solid rgba(255, 255, 255, 0.65);
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  border-right: 1px solid rgba(0, 0, 0, 0.45);
  border-bottom: 2px solid rgba(0, 0, 0, 0.65);
  box-shadow: 
    0 4px 16px -2px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(212, 163, 89, 0.10),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.60),
    inset 0 3px 12px rgba(255, 255, 255, 0.12),
    inset 0 -3px 10px rgba(0, 0, 0, 0.45),
    inset 2px 0 6px rgba(255, 255, 255, 0.15),
    inset -2px 0 6px rgba(0, 0, 0, 0.35);
}

.visual-board-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.02) 70%, transparent 100%);
  border-radius: 20px 20px 50% 50% / 20px 20px 24px 24px;
  pointer-events: none;
  z-index: 1;
}

.board-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  padding: 0 4px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.board-title {
  font-size: 11px;
  font-weight: 700;
  color: #EDD39E;
  letter-spacing: 0.4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.board-legend {
  font-size: 9.5px;
  color: #D4C5B3;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.legend-indicator {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin: 0 2px 0 6px;
  vertical-align: middle;
}

.legend-indicator:first-child {
  margin-left: 0;
}

.indicator-path {
  background: #D4A359;
  box-shadow: 0 0 8px rgba(212, 163, 89, 0.9);
}

.indicator-arrow {
  background: #55e6a5;
  box-shadow: 0 0 8px rgba(85, 230, 165, 0.85);
}

.indicator-snake {
  background: #f25c54;
  box-shadow: 0 0 8px rgba(242, 92, 84, 0.85);
}

.board-wrapper {
  position: relative;
  width: 100%;
  z-index: 2;
  box-sizing: border-box;
}

.leela-matrix {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 3.5px;
  width: 100%;
  position: relative;
  z-index: auto;
  box-sizing: border-box;
}

.cell-node {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.32) 0%,
    rgba(255, 255, 255, 0.12) 22%,
    rgba(50, 62, 80, 0.42) 60%,
    rgba(20, 28, 40, 0.60) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top: 1.5px solid rgba(255, 255, 255, 0.65);
  border-left: 1px solid rgba(255, 255, 255, 0.32);
  border-right: 1px solid rgba(0, 0, 0, 0.35);
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.55);
  box-shadow: 
    0 2px 5px rgba(0, 0, 0, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.50),
    inset 0 -1px 2px rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(6px) saturate(130%);
  -webkit-backdrop-filter: blur(6px) saturate(130%);
  transition: transform 0.08s cubic-bezier(0.2, 0, 0.38, 0.9), box-shadow 0.08s ease, filter 0.08s ease;
  position: relative;
  z-index: 2;
  user-select: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  box-sizing: border-box;
}

.cell-node::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border-radius: 4px;
  background: radial-gradient(
    circle at 50% 28%,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(38, 48, 64, 0.32) 60%,
    rgba(14, 20, 28, 0.52) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: 
    inset 0 1px 2px rgba(0, 0, 0, 0.30),
    inset 0 -0.5px 1px rgba(255, 255, 255, 0.10);
  pointer-events: none;
  z-index: 1;
  transition: all 0.08s ease;
}

.cell-node:hover {
  filter: brightness(1.12);
  border-top-color: rgba(255, 255, 255, 0.85);
  box-shadow: 
    0 3px 8px rgba(0, 0, 0, 0.40),
    0 0 10px rgba(212, 163, 89, 0.35),
    inset 0 1px 1.5px rgba(255, 255, 255, 0.65);
}

.cell-node:active {
  transform: translateY(1px) scale(0.96);
  filter: brightness(0.95);
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.5),
    inset 0 1.5px 2px rgba(0, 0, 0, 0.45);
}

.cell-node:active::after {
  background: radial-gradient(
    circle at 50% 28%,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(24, 32, 44, 0.45) 60%,
    rgba(8, 12, 18, 0.65) 100%
  );
  box-shadow: inset 0 1.5px 3px rgba(0, 0, 0, 0.6);
}

.cell-node:active .cell-num {
  transform: scale(0.92);
  filter: brightness(1.2);
}

.cell-num {
  position: relative;
  z-index: 10;
  pointer-events: none;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.2px;
  color: #FFFFFF;
  text-shadow: 
    0 0 4px rgba(212, 163, 89, 0.85),
    0 1px 3px rgba(0, 0, 0, 0.95);
  transition: transform 0.08s ease, filter 0.08s ease, text-shadow 0.08s ease;
}

.cell-node.has-arrow {
  background: linear-gradient(
    155deg,
    rgba(85, 230, 165, 0.38) 0%,
    rgba(85, 230, 165, 0.15) 24%,
    rgba(22, 60, 46, 0.48) 65%,
    rgba(10, 28, 20, 0.65) 100%
  );
  border: 1px solid rgba(85, 230, 165, 0.30);
  border-top: 1.5px solid rgba(135, 255, 205, 0.85);
  border-left: 1px solid rgba(85, 230, 165, 0.45);
  border-right: 1px solid rgba(0, 0, 0, 0.35);
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.55);
  box-shadow: 
    0 2px 5px rgba(0, 0, 0, 0.35),
    0 0 8px rgba(85, 230, 165, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.55),
    inset 0 -1px 2px rgba(0, 0, 0, 0.30);
}

.cell-node.has-arrow::after {
  background: radial-gradient(
    circle at 50% 28%,
    rgba(85, 230, 165, 0.22) 0%,
    rgba(18, 50, 38, 0.38) 60%,
    rgba(8, 24, 18, 0.58) 100%
  );
  border: 1px solid rgba(85, 230, 165, 0.20);
  border-top: 1px solid rgba(85, 230, 165, 0.45);
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
}

.cell-node.has-arrow .cell-num {
  color: #e2fff2;
  text-shadow: 0 0 5px #55e6a5, 0 1px 2px rgba(0, 0, 0, 0.90);
}

.cell-node.has-arrow:active {
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.6),
    0 0 12px 1px rgba(85, 230, 165, 0.65),
    inset 0 1.5px 2px rgba(0, 0, 0, 0.5);
}

.cell-node.has-snake {
  background: linear-gradient(
    155deg,
    rgba(242, 92, 84, 0.38) 0%,
    rgba(242, 92, 84, 0.15) 24%,
    rgba(68, 26, 24, 0.48) 65%,
    rgba(30, 10, 10, 0.65) 100%
  );
  border: 1px solid rgba(242, 92, 84, 0.30);
  border-top: 1.5px solid rgba(255, 155, 148, 0.85);
  border-left: 1px solid rgba(242, 92, 84, 0.45);
  border-right: 1px solid rgba(0, 0, 0, 0.35);
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.55);
  box-shadow: 
    0 2px 5px rgba(0, 0, 0, 0.35),
    0 0 8px rgba(242, 92, 84, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.55),
    inset 0 -1px 2px rgba(0, 0, 0, 0.30);
}

.cell-node.has-snake::after {
  background: radial-gradient(
    circle at 50% 28%,
    rgba(242, 92, 84, 0.22) 0%,
    rgba(58, 20, 18, 0.38) 60%,
    rgba(26, 8, 8, 0.58) 100%
  );
  border: 1px solid rgba(242, 92, 84, 0.20);
  border-top: 1px solid rgba(242, 92, 84, 0.45);
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
}

.cell-node.has-snake .cell-num {
  color: #ffe4e2;
  text-shadow: 0 0 5px #f25c54, 0 1px 2px rgba(0, 0, 0, 0.90);
}

.cell-node.has-snake:active {
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.6),
    0 0 12px 1px rgba(242, 92, 84, 0.65),
    inset 0 1.5px 2px rgba(0, 0, 0, 0.5);
}

.cell-node.visited {
  background: linear-gradient(
    155deg,
    rgba(255, 235, 195, 0.40) 0%,
    rgba(212, 163, 89, 0.18) 24%,
    rgba(60, 46, 24, 0.48) 65%,
    rgba(28, 20, 8, 0.65) 100%
  );
  border: 1px solid rgba(212, 163, 89, 0.35);
  border-top: 1.5px solid #ffebc3;
  border-left: 1px solid rgba(212, 163, 89, 0.45);
  border-right: 1px solid rgba(0, 0, 0, 0.35);
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.55);
  box-shadow: 
    0 2px 5px rgba(0, 0, 0, 0.35),
    0 0 8px rgba(212, 163, 89, 0.30),
    inset 0 1px 1px rgba(255, 255, 255, 0.65),
    inset 0 -1px 2px rgba(0, 0, 0, 0.30);
  z-index: 6;
}

.cell-node.visited::after {
  background: radial-gradient(
    circle at 50% 28%,
    rgba(255, 235, 195, 0.22) 0%,
    rgba(58, 42, 22, 0.38) 60%,
    rgba(28, 20, 10, 0.58) 100%
  );
  border: 1px solid rgba(212, 163, 89, 0.22);
  border-top: 1px solid rgba(255, 235, 195, 0.45);
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
}

.cell-node.visited .cell-num {
  color: #FFF3D4;
  font-weight: 800;
  text-shadow: 0 0 6px rgba(212, 163, 89, 0.85), 0 1px 2px rgba(0, 0, 0, 0.90);
}

.cell-node.active {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 6px;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.32) 0%,
    rgba(255, 255, 255, 0.12) 22%,
    rgba(50, 62, 80, 0.42) 60%,
    rgba(20, 28, 40, 0.60) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-top: 1.5px solid rgba(255, 255, 255, 0.75);
  border-left: 1px solid rgba(255, 255, 255, 0.36);
  border-right: 1px solid rgba(0, 0, 0, 0.40);
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.65);
  box-shadow: 
    0 2px 5px rgba(0, 0, 0, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.50),
    inset 0 -1px 2px rgba(0, 0, 0, 0.30);
  transform: none !important;
  z-index: 20;
  overflow: hidden;
}

.cell-node.active::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border-radius: 4px;
  background: radial-gradient(
    circle at 50% 38%,
    #FFFDF5 0%,
    #FFE5A3 25%,
    #E5A845 55%,
    #B87620 80%,
    #7A4A0A 100%
  );
  border: 1px solid rgba(255, 250, 220, 0.85);
  box-shadow: 
    inset 0 0 8px 1px rgba(255, 245, 205, 0.95),
    inset 0 0 16px 3px rgba(212, 163, 89, 0.90),
    inset 0 1.5px 1.5px #FFFFFF,
    inset 0 -1.5px 2px rgba(90, 50, 10, 0.60);
  animation: activeInnerGlow 1.8s infinite alternate ease-in-out;
  pointer-events: none;
}

.cell-node.active .cell-num {
  color: #1A0E02;
  font-weight: 800;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
}

@keyframes activeInnerGlow {
  0% {
    box-shadow: 
      inset 0 0 6px 1px rgba(255, 245, 205, 0.85),
      inset 0 0 12px 2px rgba(212, 163, 89, 0.75),
      inset 0 1px 1.5px #FFFFFF,
      inset 0 -1px 2px rgba(80, 45, 10, 0.50);
    filter: brightness(0.98);
  }
  100% {
    box-shadow: 
      inset 0 0 10px 2px rgba(255, 255, 255, 1),
      inset 0 0 18px 4px rgba(230, 175, 80, 0.95),
      inset 0 1.5px 2px #FFFFFF,
      inset 0 -2px 3px rgba(100, 55, 10, 0.60);
    filter: brightness(1.12);
  }
}

.main-insight-card {
  position: relative;
  z-index: 5;
  background: rgba(24, 28, 35, 0.92);
  border: 1px solid rgba(212, 163, 89, 0.35);
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.35), 0 0 16px rgba(212, 163, 89, 0.08), inset 0 1px 1.5px rgba(255, 255, 255, 0.22);
  padding: 18px 16px;
  text-align: left;
  margin-top: 10px;
  border-radius: 18px;
}

.insight-header {
  font-size: 13px;
  font-weight: 700;
  color: #EDD39E;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.insight-content {
  font-size: 13px;
  line-height: 1.65;
  color: #FAF8F5;
}

.ai-feedback-mini {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(16, 19, 25, 0.92);
  border: 1px solid rgba(212, 163, 89, 0.25);
}

.board-wrapper {
  position: relative;
  width: 100%;
  z-index: 2;
}

.board-trajectories-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 25;
  overflow: visible;
}

.trajectory-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all 0.35s ease;
}

.trajectory-path.arrow {
  stroke: #55e6a5;
  stroke-width: 5px;
  opacity: 0.92;
  filter: drop-shadow(0 0 6px rgba(85, 230, 165, 0.75));
}

.arrow-spine {
  fill: none;
  stroke: #FFEBC3;
  stroke-width: 1.6px;
  stroke-linecap: round;
  opacity: 0.85;
}

.arrow-fletching {
  fill: none;
  stroke: #55e6a5;
  stroke-width: 2.4px;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(85, 230, 165, 0.8));
}

.arrow-head-poly {
  fill: #55e6a5;
  stroke: #FFEBC3;
  stroke-width: 1.2px;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 7px rgba(85, 230, 165, 0.9));
}

.arrow-head-spine {
  stroke: #FFFFFF;
  stroke-width: 1.5px;
  stroke-linecap: round;
}

.trajectory-path.snake {
  stroke: #f25c54;
  stroke-width: 5.5px;
  opacity: 0.94;
  filter: drop-shadow(0 0 6px rgba(242, 92, 84, 0.8));
}

.snake-scales {
  fill: none;
  stroke: #ffc2bb;
  stroke-width: 1.6px;
  stroke-dasharray: 4 5;
  stroke-linecap: round;
  opacity: 0.9;
}

.snake-head-poly {
  fill: #f25c54;
  stroke: #ff9990;
  stroke-width: 1.2px;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 7px rgba(242, 92, 84, 0.9));
}

.snake-eye {
  fill: #FFE066;
  stroke: #FF9900;
  stroke-width: 0.5px;
  filter: drop-shadow(0 0 3px #FFE066);
}

.snake-tongue {
  fill: none;
  stroke: #FF3B5C;
  stroke-width: 1.6px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.snake-tail-tip {
  fill: #f25c54;
  filter: drop-shadow(0 0 4px rgba(242, 92, 84, 0.8));
}

.arrow-group.active-trajectory .trajectory-path.arrow,
.arrow-group.active-trajectory .arrow-head-poly {
  filter: drop-shadow(0 0 14px rgba(85, 230, 165, 1));
  animation: activeTrajectoryGlow 1.6s infinite alternate ease-in-out;
}

.snake-group.active-trajectory .trajectory-path.snake,
.snake-group.active-trajectory .snake-head-poly {
  filter: drop-shadow(0 0 14px rgba(242, 92, 84, 1));
  animation: activeTrajectoryGlow 1.6s infinite alternate ease-in-out;
}

.player-path-glow-bg {
  fill: none;
  stroke: rgba(255, 215, 0, 0.45);
  stroke-width: 9px;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: blur(4px);
  pointer-events: none;
}

.player-journey-path {
  fill: none;
  stroke: url(#player-path-grad);
  stroke-width: 4.2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.95)) drop-shadow(0 0 4px rgba(255, 235, 195, 0.9));
  stroke-dasharray: 9 4;
  animation: journeyDash 12s linear infinite;
  pointer-events: none;
}

.player-path-node {
  fill: #FFE066;
  stroke: #B8860B;
  stroke-width: 2px;
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.9));
  transition: all 0.3s ease;
  pointer-events: none;
}

.player-path-node.current {
  fill: #FFFFFF;
  stroke: #FF9900;
  stroke-width: 3.5px;
  filter: drop-shadow(0 0 12px rgba(255, 215, 0, 1)) drop-shadow(0 0 24px rgba(255, 165, 0, 0.85));
  animation: playerNodePulse 1.4s infinite alternate ease-in-out;
}

@keyframes playerNodePulse {
  0% { filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.8)); opacity: 0.9; }
  100% { filter: drop-shadow(0 0 16px rgba(255, 235, 195, 1)); opacity: 1; }
}

@keyframes journeyDash {
  to {
    stroke-dashoffset: -180;
  }
}

@keyframes activeTrajectoryGlow {
  0% { opacity: 0.85; stroke-width: 3.5px; }
  100% { opacity: 1; stroke-width: 5px; }
}

.transition-card {
  position: relative;
  z-index: 5;
  background: linear-gradient(
    140deg,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(18, 24, 34, 0.46) 60%,
    rgba(10, 14, 20, 0.60) 100%
  );
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(85, 230, 165, 0.35);
  border-top: 1.5px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  padding: 14px;
  margin-top: 8px;
  text-align: left;
}

.transition-card.snake-transition {
  border-color: rgba(242, 92, 84, 0.35);
}

.transition-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  background: rgba(85, 230, 165, 0.14);
  color: #8ef3c3;
  border: 1px solid rgba(85, 230, 165, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.transition-card.snake-transition .transition-badge {
  background: rgba(242, 92, 84, 0.14);
  color: #fca5a0;
  border-color: rgba(242, 92, 84, 0.35);
}

.transition-states-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 8px;
}

.transition-state-box {
  background: rgba(14, 18, 26, 0.65);
  border: 1px solid rgba(212, 163, 89, 0.22);
  border-radius: 10px;
  padding: 8px 10px;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.transition-state-box.start-state {
  border: 1px solid rgba(212, 163, 89, 0.35);
}

.transition-card.arrow-transition .transition-state-box.target-state {
  border: 1px solid rgba(85, 230, 165, 0.35);
  background: rgba(85, 230, 165, 0.10);
}

.transition-card.snake-transition .transition-state-box.target-state {
  border: 1px solid rgba(242, 92, 84, 0.35);
  background: rgba(242, 92, 84, 0.10);
}

.state-role {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #C4B29E;
  margin-bottom: 2px;
}

.state-cell-num {
  font-size: 10px;
  color: #EDD39E;
  font-weight: 600;
}

.state-cell-name {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  margin: 2px 0;
}

.state-cell-desc {
  font-size: 10px;
  line-height: 1.35;
  color: rgba(238, 247, 248, 0.75);
  margin-top: 2px;
  word-break: break-word;
}

.transition-arrow-divider {
  display: flex;
  align-items: center;
  justify-content: center;
}

.transition-arrow-symbol {
  font-size: 18px;
  font-weight: 900;
  color: #f7a884;
  text-shadow: 0 0 8px rgba(247, 168, 132, 0.6);
}

.transition-card.snake-transition .transition-arrow-symbol {
  color: #f25c54;
  text-shadow: 0 0 8px rgba(242, 92, 84, 0.6);
}

.diary-saved-card {
  position: relative;
  z-index: 5;
  background: linear-gradient(135deg, rgba(20, 48, 54, 0.9), rgba(11, 27, 31, 0.95));
  border: 1px solid rgba(247, 168, 132, 0.4);
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.35);
  border-radius: 16px;
  padding: 18px 16px;
  text-align: center;
  margin-top: 10px;
}

.diary-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.diary-header {
  font-size: 14px;
  font-weight: 700;
  color: #f7a884;
  margin-bottom: 8px;
}

.diary-content {
  font-size: 12px;
  line-height: 1.6;
  color: #eef7f8;
  opacity: 0.95;
}

@media (max-height: 600px) {
  .container { padding: 14px 12px 14px; }
  .title { font-size: 16px; }
  .glow-ring { width: 140px; height: 140px; }
  .diceWrap { width: 110px; height: 110px; }
  .card { padding: 12px; margin-top: 8px; }
  .textarea-field { min-height: 70px; margin-top: 6px; }
  .cell-node { height: 24px; font-size: 8px; }
}

.top-bar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: linear-gradient(180deg, rgba(16, 20, 26, 0.75) 0%, rgba(16, 20, 26, 0.40) 70%, transparent 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 85;
  pointer-events: none;
}

.top-bar-actions {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(24, 28, 35, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 163, 89, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  color: #EDD39E;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  padding: 0;
}

.top-bar-btn:hover {
  background: rgba(34, 39, 48, 0.95);
  border-color: rgba(212, 163, 89, 0.75);
  color: #FFEBC3;
  transform: scale(1.05);
}

.top-bar-btn:active {
  transform: scale(0.92);
}

.top-reset-btn {
  border-color: rgba(212, 163, 89, 0.35);
  color: #EDD39E;
}

.top-reset-btn:hover {
  border-color: rgba(212, 163, 89, 0.75);
  color: #FFEBC3;
}

.reset-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.reset-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.reset-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 16, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.reset-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 330px;
  background: linear-gradient(135deg, rgba(28, 32, 40, 0.96) 0%, rgba(18, 21, 27, 0.98) 100%);
  border: 1px solid rgba(212, 163, 89, 0.35);
  border-radius: 24px;
  padding: 24px 20px 20px;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.75), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transform: scale(0.92) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reset-modal.active .reset-modal-card {
  transform: scale(1) translateY(0);
}

.modal-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(212, 163, 89, 0.15);
  border: 1px solid rgba(212, 163, 89, 0.45);
  color: #EDD39E;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 0 20px rgba(212, 163, 89, 0.25);
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #FAF8F5;
  margin-bottom: 8px;
}

.modal-text {
  font-size: 13px;
  line-height: 1.5;
  color: #A3ABB7;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  align-items: stretch;
}

.modal-actions .roll-btn {
  max-width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  border-radius: 16px;
}

.modal-confirm-btn {
  background: 
    linear-gradient(180deg, #181B20 0%, #101215 100%) padding-box,
    linear-gradient(135deg, #FFEBC3 0%, #D4A359 28%, #7A5318 50%, #D4A359 72%, #FFF4D9 100%) border-box;
  border: 1.5px solid transparent;
  color: #EDD39E;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65), 0 0 16px rgba(212, 163, 89, 0.35), inset 0 1px 1.5px rgba(255, 235, 195, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.modal-cancel-btn {
  border-color: rgba(212, 163, 89, 0.35);
  color: #EDD39E;
}

.insights-diary-card {
  width: 100%;
  max-width: 360px;
  background: rgba(20, 24, 32, 0.92);
  border: 1px solid rgba(212, 163, 89, 0.35);
  border-radius: 20px;
  padding: 16px;
  margin-top: 12px;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.diary-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212, 163, 89, 0.2);
}

.diary-card-icon {
  font-size: 22px;
}

.diary-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #FAF8F5;
}

.diary-card-subtitle {
  font-size: 11px;
  color: #A3ABB7;
}

.diary-reflections-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.diary-reflections-list::-webkit-scrollbar {
  width: 4px;
}

.diary-reflections-list::-webkit-scrollbar-thumb {
  background: rgba(212, 163, 89, 0.35);
  border-radius: 4px;
}

.diary-reflection-item {
  background: linear-gradient(180deg, rgba(22, 26, 35, 0.92), rgba(14, 18, 24, 0.95));
  border: 1px solid rgba(212, 163, 89, 0.25);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.reflection-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reflection-cell-badge {
  font-size: 11px;
  font-weight: 700;
  color: #EDD39E;
  background: rgba(212, 163, 89, 0.16);
  border: 1px solid rgba(212, 163, 89, 0.38);
  padding: 2px 8px;
  border-radius: 10px;
}

.reflection-q-text {
  font-size: 12px;
  font-weight: 600;
  color: #E2E8F0;
  line-height: 1.4;
}

.reflection-a-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(212, 163, 89, 0.05) 50%, rgba(122, 143, 124, 0.05) 100%);
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(212, 163, 89, 0.25);
}

.reflection-a-label {
  font-size: 10px;
  font-weight: 700;
  color: #EDD39E;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.reflection-a-text {
  font-size: 13px;
  color: #F7F5F0;
  line-height: 1.45;
}

.active-game-card {
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 5;
  background: linear-gradient(
    145deg,
    rgba(30, 35, 44, 0.74) 0%,
    rgba(20, 24, 30, 0.80) 45%,
    rgba(32, 28, 24, 0.76) 75%,
    rgba(22, 28, 24, 0.78) 100%
  );
  background-size: 240% 240%;
  background-position: 0% 15%;
  animation: cardGradientDrift 16s ease-in-out infinite alternate;
  border: 1px solid rgba(212, 163, 89, 0.35);
  border-top: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.38), 0 0 20px rgba(212, 163, 89, 0.12), inset 0 1px 1.5px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 22px;
  padding: 22px 20px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.active-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.active-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  color: #EDD39E;
  background: rgba(212, 163, 89, 0.12);
  border: 1px solid rgba(212, 163, 89, 0.28);
  padding: 4px 12px;
  border-radius: 20px;
  width: fit-content;
  letter-spacing: 0.3px;
}

.active-card-badge::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #D4A359;
  box-shadow: 0 0 8px #D4A359;
}

.active-card-intention {
  background: rgba(16, 19, 25, 0.85);
  border: 1px solid rgba(212, 163, 89, 0.28);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(0, 0, 0, 0.4);
}

.active-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: #A3ABB7;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.active-text {
  font-size: 15px;
  font-weight: 700;
  color: #F7F5F0;
  line-height: 1.45;
  word-break: break-word;
}

.active-card-meta {
  display: flex;
  gap: 8px;
}

.meta-item {
  font-size: 12px;
  font-weight: 600;
  color: #EDD39E;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 163, 89, 0.25);
  padding: 4px 12px;
  border-radius: 12px;
}

.active-card-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
  width: 100%;
  align-items: stretch;
}

.active-card-actions .roll-btn {
  padding: 14px 22px;
  font-size: 14.5px;
  border-radius: 14px;
  width: 100%;
  max-width: 100%;
}

.resume-btn {
  background: 
    linear-gradient(180deg, #181B20 0%, #101215 100%) padding-box,
    linear-gradient(135deg, #FFEBC3 0%, #D4A359 28%, #7A5318 50%, #D4A359 72%, #FFF4D9 100%) border-box;
  border: 1.5px solid transparent;
  color: #EDD39E;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65), 0 0 16px rgba(212, 163, 89, 0.35), inset 0 1px 1.5px rgba(255, 235, 195, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.resume-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(237, 211, 158, 0.95);
  color: #FFF2D6;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75), 0 0 22px rgba(212, 163, 89, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.95), inset 0 -1px 2px rgba(212, 163, 89, 0.75);
}

.intro-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.history-btn {
  border: 1.5px solid transparent;
  background: 
    linear-gradient(180deg, #161A17 0%, #0E120F 100%) padding-box,
    linear-gradient(135deg, #E2EAE3 0%, #7A8F7C 28%, #364438 50%, #7A8F7C 72%, #F0F6F1 100%) border-box;
  color: #C2D1C4;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 14px rgba(122, 143, 124, 0.22);
}

.history-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.history-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.history-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 14, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.history-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(22, 26, 35, 0.98) 0%, rgba(12, 15, 20, 0.99) 100%);
  border: 1px solid rgba(212, 163, 89, 0.35);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 25px rgba(212, 163, 89, 0.12), inset 0 1px 1px rgba(255, 235, 195, 0.15);
  transform: scale(0.94) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.history-modal.active .history-modal-card {
  transform: scale(1) translateY(0);
}

.history-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(212, 163, 89, 0.22);
}

.history-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #FAF8F5;
}

.history-close-btn {
  background: rgba(24, 28, 35, 0.85);
  border: 1px solid rgba(212, 163, 89, 0.35);
  color: #EDD39E;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.history-close-btn:hover {
  background: rgba(34, 39, 48, 0.95);
  border-color: rgba(212, 163, 89, 0.75);
  color: #FFEBC3;
}

.history-modal-body {
  padding: 16px 18px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.history-empty {
  text-align: center;
  padding: 30px 10px;
}

.empty-icon {
  font-size: 38px;
  margin-bottom: 10px;
}

.empty-title {
  font-size: 16px;
  font-weight: 700;
  color: #FAF8F5;
  margin-bottom: 6px;
}

.empty-desc {
  font-size: 12px;
  color: #A3ABB7;
  line-height: 1.5;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-card-item {
  background: linear-gradient(145deg, rgba(28, 32, 40, 0.95), rgba(18, 22, 28, 0.98));
  border: 1px solid rgba(212, 163, 89, 0.28);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.history-card-item:hover {
  border-color: rgba(212, 163, 89, 0.65);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 12px rgba(212, 163, 89, 0.15);
}

.history-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.history-item-date {
  font-size: 11px;
  color: #A3ABB7;
}

.history-item-status {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
}

.status-active {
  background: rgba(212, 163, 89, 0.16);
  color: #EDD39E;
  border: 1px solid rgba(212, 163, 89, 0.42);
}

.status-completed {
  background: rgba(237, 211, 158, 0.20);
  color: #FFF3D4;
  border: 1px solid rgba(237, 211, 158, 0.5);
}

.status-reset {
  background: rgba(255, 255, 255, 0.06);
  color: #8E97A4;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.history-item-intent {
  font-size: 13.5px;
  font-weight: 600;
  color: #FAF8F5;
  line-height: 1.45;
  background: linear-gradient(90deg, rgba(212, 163, 89, 0.10) 0%, rgba(14, 17, 22, 0.85) 100%);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(212, 163, 89, 0.22);
}

.history-item-path {
  font-size: 11px;
  color: #C8D0DC;
}

.history-item-accordion-btn {
  background: rgba(212, 163, 89, 0.08);
  border: 1px solid rgba(212, 163, 89, 0.25);
  color: #EDD39E;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.history-item-accordion-btn:hover {
  background: rgba(212, 163, 89, 0.15);
  border-color: rgba(212, 163, 89, 0.45);
}

.history-reflections-container {
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.history-reflections-container.open {
  display: flex;
}

.history-summary-accordion-btn {
  margin-top: 4px;
  background: rgba(223, 156, 116, 0.12);
  border-color: rgba(223, 156, 116, 0.35);
  color: #df9c74;
}

.history-summary-accordion-btn:hover {
  background: rgba(223, 156, 116, 0.22);
  border-color: rgba(223, 156, 116, 0.55);
  color: #ffb88c;
}

.history-summary-container {
  display: none;
  margin-top: 4px;
}

.history-summary-container.open {
  display: block;
}

.history-summary-box {
  font-size: 11.5px;
  color: #df9c74;
  background: rgba(223, 156, 116, 0.1);
  border: 1px solid rgba(223, 156, 116, 0.25);
  padding: 10px 12px;
  border-radius: 10px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.status-ticker {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px auto 0;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(20, 24, 32, 0.92), rgba(12, 16, 22, 0.96));
  border: 1px solid rgba(212, 163, 89, 0.45);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(212, 163, 89, 0.18), inset 0 1px 1px rgba(255, 235, 195, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: tickerPulse 2.4s ease-in-out infinite alternate;
  width: max-content;
  max-width: min(92vw, 380px);
  box-sizing: border-box;
}

.cell-submitting-ticker {
  margin: 10px auto 4px;
}

.finish-loading-ticker {
  margin: 0 auto 12px;
  width: 100%;
}

.ticker-dot {
  width: 7px;
  height: 7px;
  min-width: 7px;
  border-radius: 50%;
  background: #D4A359;
  box-shadow: 0 0 8px #D4A359, 0 0 14px rgba(212, 163, 89, 0.6);
  animation: tickerBlink 1.4s ease-in-out infinite alternate;
}

.ticker-text {
  font-size: 13px;
  font-weight: 600;
  color: #FAF8F5;
  letter-spacing: 0.25px;
  text-align: center;
  transition: opacity 0.35s ease, transform 0.35s ease;
  opacity: 1;
  transform: translateY(0);
}

.ticker-text.fade-out {
  opacity: 0;
  transform: translateY(-3px);
}

.same-cell-card {
  background: rgba(22, 27, 34, 0.88);
  border: 1px solid rgba(245, 158, 11, 0.42);
  border-radius: 16px;
  padding: 14px 18px;
  margin: 0 auto 12px auto;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 0 15px rgba(245, 158, 11, 0.08);
  width: 100%;
  max-width: 380px;
  box-sizing: border-box;
  animation: fadeIn 0.4s ease forwards;
}

.same-cell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
  flex-wrap: wrap;
}

.same-cell-title {
  font-size: 13px;
  font-weight: 700;
  color: #fbbf24;
}

.same-cell-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #FFE066;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.same-cell-content {
  font-size: 13px;
  line-height: 1.5;
  color: #fef3c7;
}

.same-cell-note-box {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(245, 158, 11, 0.22);
}

.same-cell-note-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
  transition: opacity 0.2s;
}

.same-cell-note-toggle-row:hover {
  opacity: 0.85;
}

.same-cell-note-label {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #fbbf24;
  margin: 0;
  letter-spacing: 0.3px;
}

.same-cell-note-chevron {
  font-size: 12px;
  color: #fbbf24;
  transition: transform 0.2s;
}

.same-cell-note-body {
  margin-top: 6px;
}

.same-cell-textarea {
  width: 100%;
  min-height: 72px;
  font-size: 12.5px;
  line-height: 1.45;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(10, 20, 25, 0.65);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #FFFFFF;
  resize: vertical;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.same-cell-textarea:focus {
  outline: none;
  border-color: #fbbf24;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.same-cell-note-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.same-cell-save-btn {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  cursor: pointer;
  transition: all 0.2s ease;
}

.same-cell-save-btn:hover {
  background: rgba(245, 158, 11, 0.3);
  border-color: #fbbf24;
}

.same-cell-save-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.same-cell-save-status {
  font-size: 11.5px;
  color: #94a3b8;
}

.same-cell-save-status.success {
  color: #34d399;
}

.same-cell-save-status.error {
  color: #f87171;
}

@keyframes tickerPulse {
  0% {
    border-color: rgba(212, 163, 89, 0.35);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 12px rgba(212, 163, 89, 0.15);
  }
  100% {
    border-color: rgba(212, 163, 89, 0.75);
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 163, 89, 0.32);
  }
}

@keyframes tickerBlink {
  0% {
    opacity: 0.5;
    transform: scale(0.85);
    box-shadow: 0 0 6px #D4A359;
  }
  100% {
    opacity: 1;
    transform: scale(1.15);
    box-shadow: 0 0 12px #D4A359, 0 0 18px rgba(212, 163, 89, 0.7);
  }
}

.rethink-card {
  padding: 22px 20px;
  background: rgba(22, 18, 14, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 163, 89, 0.28);
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 235, 195, 0.12);
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.rethink-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(212, 163, 89, 0.16);
  color: #ffebc3;
  border: 1px solid rgba(212, 163, 89, 0.35);
}

.rethink-title {
  font-family: 'Golos Text', 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #fff4e0;
  margin: 0;
  line-height: 1.25;
}

.rethink-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 235, 195, 0.78);
  margin: 0;
}

.rethink-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 380px) {
  .rethink-options-grid {
    grid-template-columns: 1fr;
  }
}

.rethink-opt-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 14px;
  background: rgba(30, 24, 18, 0.65);
  border: 1px solid rgba(212, 163, 89, 0.2);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.22s ease;
  color: #fff;
  text-align: left;
}

.rethink-opt-btn:hover {
  background: rgba(45, 35, 26, 0.85);
  border-color: rgba(212, 163, 89, 0.45);
}

.rethink-opt-btn.active {
  background: linear-gradient(145deg, rgba(212, 163, 89, 0.25), rgba(120, 80, 30, 0.3));
  border-color: #d4a359;
  box-shadow: 0 4px 18px rgba(212, 163, 89, 0.22), inset 0 1px 0 rgba(255, 235, 195, 0.3);
}

.rethink-opt-icon {
  color: #d4a359;
  margin-bottom: 6px;
  display: inline-flex;
}

.rethink-opt-btn.active .rethink-opt-icon {
  color: #ffebc3;
}

.rethink-opt-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffebc3;
  margin-bottom: 3px;
}

.rethink-opt-sub {
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 235, 195, 0.65);
}

.rethink-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rethink-input-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 235, 195, 0.8);
}

.rethink-textarea {
  min-height: 95px;
  resize: vertical;
}

.rethink-rule-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(212, 163, 89, 0.08);
  border: 1px dashed rgba(212, 163, 89, 0.3);
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 235, 195, 0.85);
}

.rethink-rule-hint .hint-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.top-paywall-btn {
  border-color: rgba(212, 163, 89, 0.45);
  background: linear-gradient(135deg, rgba(30, 36, 48, 0.85) 0%, rgba(20, 24, 32, 0.95) 100%);
  color: #EDD39E;
  box-shadow: 0 0 12px rgba(212, 163, 89, 0.25);
}

.top-paywall-btn:hover {
  border-color: rgba(237, 211, 158, 0.85);
  color: #FFF2D6;
  box-shadow: 0 0 18px rgba(212, 163, 89, 0.45);
}

.paywall-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.paywall-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.paywall-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 14, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.paywall-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(22, 26, 35, 0.98) 0%, rgba(12, 15, 20, 0.99) 100%);
  border: 1px solid rgba(212, 163, 89, 0.4);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(212, 163, 89, 0.18), inset 0 1px 1px rgba(255, 235, 195, 0.25);
  transform: scale(0.94) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.paywall-modal.active .paywall-modal-card {
  transform: scale(1) translateY(0);
}

.paywall-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(212, 163, 89, 0.18);
}

.paywall-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(212, 163, 89, 0.12);
  border: 1px solid rgba(212, 163, 89, 0.35);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  color: #EDD39E;
  letter-spacing: 0.3px;
}

.paywall-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #A3ABB7;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
}

.paywall-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FAF8F5;
  transform: rotate(90deg);
}

.paywall-modal-body {
  padding: 18px 20px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.paywall-title {
  font-family: 'Golos Text', 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #FAF8F5;
  line-height: 1.35;
  letter-spacing: -0.3px;
  text-align: left;
}

.paywall-desc {
  font-size: 13px;
  color: #C0C8D4;
  line-height: 1.55;
  text-align: left;
}

.paywall-result-link-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212, 163, 89, 0.12) 0%, rgba(30, 36, 48, 0.6) 100%);
  border: 1px solid rgba(212, 163, 89, 0.35);
  color: #EDD39E;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  text-align: left;
}

.paywall-result-link-btn:hover {
  background: linear-gradient(135deg, rgba(212, 163, 89, 0.22) 0%, rgba(40, 48, 64, 0.75) 100%);
  border-color: rgba(237, 211, 158, 0.6);
  color: #FFF2D6;
  transform: translateY(-1px);
}

.paywall-tariffs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 2px;
}

.paywall-tariff-card {
  position: relative;
  background: linear-gradient(180deg, rgba(26, 31, 42, 0.92) 0%, rgba(16, 20, 28, 0.96) 100%);
  border: 1px solid rgba(212, 163, 89, 0.25);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.paywall-tariff-card:hover {
  border-color: rgba(212, 163, 89, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(212, 163, 89, 0.15);
}

.tariff-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.tariff-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #FAF8F5;
  line-height: 1.3;
}

.tariff-price {
  font-size: 16px;
  font-weight: 800;
  color: #EDD39E;
  white-space: nowrap;
}

.tariff-subprice {
  font-size: 11.5px;
  font-weight: 500;
  color: #A3ABB7;
}

.tariff-feat {
  font-size: 12px;
  color: #A3ABB7;
  line-height: 1.45;
  margin: 0;
}

.paywall-tariff-btn {
  width: 100%;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-top: 4px;
}

.paywall-tariff-btn.btn-bot {
  background: linear-gradient(135deg, rgba(212, 163, 89, 0.18) 0%, rgba(212, 163, 89, 0.08) 100%);
  border: 1px solid rgba(212, 163, 89, 0.45);
  color: #EDD39E;
}

.paywall-tariff-btn.btn-bot:hover {
  background: linear-gradient(135deg, rgba(212, 163, 89, 0.3) 0%, rgba(212, 163, 89, 0.15) 100%);
  color: #FFF2D6;
  border-color: rgba(237, 211, 158, 0.8);
}

.tariff-decoy {
  background: linear-gradient(180deg, rgba(20, 24, 32, 0.85) 0%, rgba(14, 17, 24, 0.9) 100%);
  border: 1px solid rgba(163, 171, 183, 0.2);
  opacity: 0.92;
}

.paywall-tariff-btn.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #D0D7E2;
}

.paywall-tariff-btn.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.tariff-featured {
  background: linear-gradient(180deg, rgba(32, 28, 22, 0.95) 0%, rgba(22, 20, 18, 0.98) 100%);
  border: 1.5px solid #D4A359;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6), 0 0 22px rgba(212, 163, 89, 0.25), inset 0 1px 1px rgba(255, 235, 195, 0.3);
  padding-top: 26px;
}

.tariff-ribbon {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  background: linear-gradient(90deg, #D4A359 0%, #F5D38A 50%, #D4A359 100%);
  color: #12151B;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-align: center;
  padding: 4px 8px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.paywall-tariff-btn.btn-featured {
  background: linear-gradient(135deg, #FFEBC3 0%, #D4A359 35%, #9E7430 70%, #FFEBC3 100%);
  background-size: 200% 200%;
  border: none;
  color: #12151B;
  font-weight: 800;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 16px rgba(212, 163, 89, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.paywall-tariff-btn.btn-featured:hover {
  background-position: right center;
  box-shadow: 0 6px 22px rgba(212, 163, 89, 0.6);
  transform: translateY(-1px);
}

.paywall-longterm-note {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(122, 143, 124, 0.12);
  border: 1px dashed rgba(122, 143, 124, 0.4);
  color: #C2D1C4;
  font-size: 11.5px;
  line-height: 1.4;
}

.paywall-longterm-note svg {
  flex-shrink: 0;
  color: #8EAE91;
}

.paywall-test-window {
  margin: 14px 0 16px 0;
  padding: 16px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(80, 200, 120, 0.12) 0%, rgba(20, 80, 45, 0.24) 100%);
  border: 1.5px solid rgba(80, 200, 120, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(80, 200, 120, 0.15);
  text-align: center;
}

.test-window-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(80, 200, 120, 0.2);
  border: 1px solid rgba(80, 200, 120, 0.5);
  color: #A8E8BC;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.test-window-title {
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.test-window-desc {
  color: #D4ECD8;
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 14px 0;
}

.paywall-test-simulate-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(80, 200, 120, 0.85) 0%, rgba(35, 140, 70, 0.95) 100%);
  border: 1px solid rgba(160, 255, 190, 0.6);
  color: #0B1E12;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), 0 0 16px rgba(80, 200, 120, 0.4);
}

.paywall-test-simulate-btn:hover {
  background: linear-gradient(135deg, rgba(100, 220, 140, 0.95) 0%, rgba(45, 160, 85, 1) 100%);
  color: #05140A;
  box-shadow: 0 6px 24px rgba(80, 200, 120, 0.55);
  transform: translateY(-1px);
}

.result-modal {
  position: fixed;
  inset: 0;
  z-index: 1010;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.result-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.result-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 14, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.result-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(22, 26, 35, 0.98) 0%, rgba(12, 15, 20, 0.99) 100%);
  border: 1px solid rgba(212, 163, 89, 0.35);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(212, 163, 89, 0.15);
  transform: scale(0.94) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.result-modal.active .result-modal-card {
  transform: scale(1) translateY(0);
}

.result-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(212, 163, 89, 0.2);
}

.result-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #FAF8F5;
}

.result-header-title svg {
  color: #EDD39E;
}

.result-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #A3ABB7;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
}

.result-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FAF8F5;
  transform: rotate(90deg);
}

.result-modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.result-label {
  font-size: 11px;
  text-transform: uppercase;
  color: #EDD39E;
  font-weight: 700;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.result-intention-card {
  background: rgba(16, 20, 28, 0.9);
  border: 1px solid rgba(212, 163, 89, 0.3);
  border-radius: 14px;
  padding: 12px 14px;
}

.result-intention-text {
  font-size: 14px;
  font-weight: 600;
  color: #FAF8F5;
  line-height: 1.45;
}

.result-cells-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.result-cell-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 163, 89, 0.25);
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 12px;
  color: #EDD39E;
  font-weight: 600;
}

.result-reflections-section {
  display: flex;
  flex-direction: column;
}

.result-reflections-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 240px;
  overflow-y: auto;
}

.result-modal-footer {
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(212, 163, 89, 0.18);
}

.result-return-btn {
  width: 100%;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212, 163, 89, 0.2) 0%, rgba(212, 163, 89, 0.08) 100%);
  border: 1px solid rgba(212, 163, 89, 0.45);
  color: #EDD39E;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.result-return-btn:hover {
  background: linear-gradient(135deg, rgba(212, 163, 89, 0.3) 0%, rgba(212, 163, 89, 0.15) 100%);
  color: #FFF2D6;
  border-color: rgba(237, 211, 158, 0.8);
}

.paywall-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(20, 26, 36, 0.96) 0%, rgba(12, 16, 24, 0.98) 100%);
  border: 1.5px solid rgba(80, 200, 120, 0.6);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 24px rgba(80, 200, 120, 0.25);
  color: #FAF8F5;
  font-size: 13.5px;
  font-weight: 600;
  max-width: 90vw;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.paywall-toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.paywall-toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(80, 200, 120, 0.2);
  color: #50C878;
  flex-shrink: 0;
}

.rules-modal {
  position: fixed;
  inset: 0;
  z-index: 1020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.rules-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.rules-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 14, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.rules-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(22, 26, 35, 0.98) 0%, rgba(12, 15, 20, 0.99) 100%);
  border: 1px solid rgba(212, 163, 89, 0.35);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(212, 163, 89, 0.15);
  transform: scale(0.94) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.rules-modal.active .rules-modal-card {
  transform: scale(1) translateY(0);
}

.rules-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(212, 163, 89, 0.2);
}

.rules-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #FAF8F5;
}

.rules-header-title svg {
  color: #EDD39E;
}

.rules-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #A3ABB7;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
}

.rules-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FAF8F5;
  transform: rotate(90deg);
}

.rules-modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rules-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(16, 20, 28, 0.7);
  border: 1px solid rgba(212, 163, 89, 0.2);
  border-radius: 14px;
  padding: 12px 14px;
}

.rules-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #EDD39E;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.rules-dot {
  font-size: 16px;
  line-height: 1;
  color: #D4A359;
}

.rules-p {
  font-size: 13px;
  line-height: 1.5;
  color: #E2E8F0;
  margin: 0;
}

.rules-highlight {
  color: #FFF3D4;
  font-weight: 600;
  margin-top: 4px;
}

.rules-list {
  margin: 4px 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rules-list li {
  font-size: 12.5px;
  line-height: 1.45;
  color: #E2E8F0;
}

.rules-modal-footer {
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(212, 163, 89, 0.18);
}

.rules-ok-btn {
  width: 100%;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212, 163, 89, 0.25) 0%, rgba(212, 163, 89, 0.1) 100%);
  border: 1px solid rgba(212, 163, 89, 0.5);
  color: #EDD39E;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rules-ok-btn:hover {
  background: linear-gradient(135deg, rgba(212, 163, 89, 0.35) 0%, rgba(212, 163, 89, 0.18) 100%);
  color: #FFF2D6;
  border-color: rgba(237, 211, 158, 0.85);
}

.intro-guide-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(145deg, rgba(28, 33, 42, 0.96) 0%, rgba(18, 22, 28, 0.98) 100%);
  border: 1px solid rgba(212, 163, 89, 0.35);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 235, 195, 0.15);
}

.guide-profile-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.guide-avatar-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  min-width: 76px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, #FFE066, #D4A359, #8C6239);
  box-shadow: 0 0 18px rgba(212, 163, 89, 0.35);
}

.guide-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.guide-info-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.guide-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #D4A359;
  background: rgba(212, 163, 89, 0.14);
  padding: 2px 8px;
  border-radius: 6px;
  width: fit-content;
  border: 1px solid rgba(212, 163, 89, 0.28);
}

.guide-name {
  font-size: 16px;
  font-weight: 700;
  color: #FAF8F5;
  margin: 0;
  line-height: 1.25;
}

.guide-role {
  font-size: 11px;
  color: #A3ABB7;
  line-height: 1.35;
}

.guide-intro-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: #E2E8F0;
  margin: 0;
}

.guide-features-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 4px;
  border-top: 1px solid rgba(212, 163, 89, 0.15);
}

.guide-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
  line-height: 1.4;
  color: #C8D0DC;
}

.feat-dot {
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: #D4A359;
  margin-top: 5px;
  box-shadow: 0 0 6px rgba(212, 163, 89, 0.6);
}

.review-offer-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(145deg, rgba(32, 28, 24, 0.96) 0%, rgba(20, 18, 16, 0.98) 100%);
  border: 1px solid rgba(223, 156, 116, 0.45);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55), 0 0 20px rgba(223, 156, 116, 0.12);
}

.review-offer-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #df9c74;
  background: rgba(223, 156, 116, 0.15);
  padding: 2px 8px;
  border-radius: 6px;
  width: fit-content;
  border: 1px solid rgba(223, 156, 116, 0.35);
}

.review-offer-title {
  font-size: 15px;
  font-weight: 700;
  color: #FAF8F5;
  margin: 0;
  line-height: 1.3;
}

.review-offer-desc {
  font-size: 12px;
  line-height: 1.5;
  color: #E2E8F0;
  margin: 0;
}

.review-session-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 14px;
  background: linear-gradient(135deg, #df9c74 0%, #b86b45 100%);
  border: 1px solid rgba(255, 220, 195, 0.4);
  border-radius: 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(223, 156, 116, 0.35);
}

.review-session-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(223, 156, 116, 0.5);
  color: #ffffff;
}
