/* STRUM SURFER — LANDING PAGE STYLE SHEET */

:root {
  --paper:     #FBF7EF;
  --paper-2:   #FFFDF8;
  --dot:       rgba(74, 70, 64, 0.07);
  --ink:       #4A4640;
  --ink-soft:  #6E6860;
  --line:      #E4DCCE;
  --sakura:    #F2A9B8;
  --matcha:    #93BE84;
  --matcha-d:  #6F9C61;
  --sky:       #9CC4E6;
  --apricot:   #F1C173;
  --coral:     #EF8C6E;
  --surf:      #86D5C9;   /* Aquamarine/teal surfer theme */
  --surf-d:    #4D9D91;   /* Dark aquamarine */
  --surf-l:    #EAF8F5;   /* Soft sea wash */
  --shadow:    6px 6px 0 rgba(74, 70, 64, 0.10);
  --shadow-sm: 3px 3px 0 rgba(74, 70, 64, 0.10);
}

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

html, body {
  height: 100%;
}

body {
  background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  color: var(--ink);
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* CONTAINER */

.container {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 20px 100px;
}

/* HANDDRAWN CARDS */

.card {
  background: var(--paper-2);
  border: 2.5px solid var(--ink);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translate(-1px, -1px);
  box-shadow: 8px 8px 0 rgba(74, 70, 64, 0.12);
}

/* HERO SECTION */

.hero {
  position: relative;
  width: 100%;
  min-height: 620px;
  height: 75dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  border-bottom: 2.5px solid var(--ink);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/strum-surfer.png');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 550px;
  width: 90%;
  padding: 45px 40px;
  text-align: left;
}

.hero-title {
  font-family: 'Yusei Magic', sans-serif;
  font-size: clamp(38px, 6.5vw, 68px);
  margin: 0 0 24px;
  line-height: 1.1;
  color: var(--ink);
  position: relative;
  display: inline-block;
  letter-spacing: 0.05em;
}

.hero-title .sn {
  color: var(--surf-d);
}

.hero-title::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -6px;
  height: 6px;
  border-radius: 60% 40% 50% 50%;
  background: var(--surf);
  opacity: 0.85;
}

.hero-subtitle {
  font-family: 'Klee One', serif;
  font-size: clamp(19px, 2.5vw, 24px);
  color: var(--ink-soft);
  max-width: 580px;
  margin: 10px 0;
  line-height: 1.5;
  text-align: left;
}

.hero-tags {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-tag {
  font-size: 13.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 30px;
  border: 1.5px solid var(--ink);
  display: inline-flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.sky-tag { background: var(--surf-l); color: var(--surf-d); border-color: var(--surf-d); }
.sakura-tag { background: var(--sakura); color: #572c38; }
.apricot-tag { background: var(--apricot); color: #57412c; }

/* SECTIONS */

.section {
  padding: 30px 0;
}

.section-title {
  font-family: 'Yusei Magic', sans-serif;
  font-size: 32px;
  text-align: center;
  margin-bottom: 24px;
  color: var(--ink);
  position: relative;
}

.text-center {
  text-align: center;
}

/* PURCHASE SECTION */

#purchase-section {
  padding-bottom: 0;
}

.video-section {
  padding-top: 0;
}

.purchase-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 10px 0;
}

.price-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.price {
  font-family: 'Yusei Magic', sans-serif;
  font-size: 68px;
  line-height: 1.1;
  color: var(--coral);
}

.price-note {
  font-family: 'Klee One', serif;
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 4px;
  letter-spacing: 0.05em;
}

.signin-link {
  display: block;
  margin-top: 8px;
  font-family: 'Klee One', serif;
  font-size: 18px;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: color 0.15s ease;
}

.signin-link:hover {
  color: var(--ink);
}

/* BUTTONS */

.btn {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--paper-2);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  padding: 14px 30px;
  font-size: 19px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease, background .15s;
}

.btn:hover {
  transform: translate(-1.5px, -1.5px) rotate(-0.5deg);
  box-shadow: 5px 5px 0 rgba(74, 70, 64, 0.12);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(74, 70, 64, 0.12);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--surf);
  border-color: var(--surf-d);
  color: #1c453f;
}

.btn-primary:hover {
  background: #a4e5db;
  color: #1c453f;
}

.btn--large {
  font-size: 23px;
  padding: 18px 45px;
  width: 100%;
}

.btn-sm {
  padding: 8px 22px;
  font-size: 15px;
}

/* VIDEO EMBED */

.video-section {
  display: flex;
  justify-content: center;
}

.video-wrapper {
  width: 100%;
  max-width: 640px;
}

#youtube-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: none;
}

/* GAME MODES GRID */

.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 10px;
}

.mode-card {
  padding: 30px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card.snake-theme {
  background: #E8F5E3; /* Visible Light Pastel Green */
}
.card.snake-theme:hover {
  background: #D7EDD0;
}

.card.fruit-theme {
  background: #FFE4D6; /* Visible Light Pastel Coral/Peach */
}
.card.fruit-theme:hover {
  background: #FFCDBC;
}

.mode-icon {
  font-size: 52px;
  line-height: 1;
  margin-bottom: 12px;
}

.mode-card h3 {
  font-family: 'Yusei Magic', sans-serif;
  color: var(--surf-d);
  font-size: 22px;
  margin-bottom: 8px;
}

.mode-card p {
  font-family: 'Klee One', serif;
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.highlight-note {
  font-family: 'Klee One', serif;
  font-size: 18px;
  color: var(--ink-soft);
  margin-top: 24px;
  font-weight: 600;
}

/* FEATURES CARD */

.features-card {
  padding: 40px 30px;
  border-radius: 225px 15px 255px 15px / 15px 255px 15px 225px;
}

.features {
  list-style: none;
  max-width: 600px;
  margin: 0 auto;
}

.features li {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 19.5px;
  color: var(--ink);
  padding: 8px 0 8px 30px;
  position: relative;
  line-height: 1.5;
}

.features li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--surf-d);
  font-weight: bold;
  font-size: 18px;
}

/* FAQ ACCORDION */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-radius: 12px;
}

.faq-item summary {
  font-family: 'Yusei Magic', sans-serif;
  font-size: 20.5px;
  color: var(--ink);
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "＋";
  font-size: 16px;
  font-weight: 700;
  color: var(--surf-d);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "－";
}

.faq-answer {
  padding: 0 20px 20px;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.6;
  border-top: 1.5px dashed var(--line);
  margin-top: 4px;
  padding-top: 16px;
}

.faq-answer a {
  color: var(--coral);
  font-weight: bold;
  text-decoration: underline;
}

/* STATUS / LOADING */

.status {
  padding: 24px 0;
  font-family: 'Yusei Magic', sans-serif;
  font-size: 21px;
  color: var(--surf-d);
  letter-spacing: 0.05em;
}

.pulse-text {
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

/* STICKY BAR */

.sticky-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 12px 20px;
  z-index: 100;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--paper-2);
  border-bottom: 2.5px solid var(--ink);
  box-shadow: 0 4px 15px rgba(74, 70, 64, 0.08);
}

.sticky-bar.visible {
  transform: translateY(0);
}

#sticky-buy, #sticky-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* CLERK EMBED */

.clerk-embed-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
}

/* HIDDEN */

.hidden {
  display: none !important;
}

/* FOOTER */

.footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1.5px dashed var(--line);
  font-size: 16.5px;
  color: var(--ink-soft);
}

.footer-links {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--ink-soft);
  margin: 0 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--ink);
}

/* RESPONSIVE */

@media (max-width: 600px) {
  .hero {
    min-height: 360px;
    height: 48dvh;
  }

  .hero-content {
    padding: 24px 20px;
  }
  
  .hero-title {
    font-size: 34px;
    margin-bottom: 16px;
  }
  
  .hero-subtitle {
    font-size: 15px;
    margin: 6px 0;
  }
  
  .modes-grid {
    grid-template-columns: 1fr;
  }
  
  .purchase-card {
    padding: 24px 16px;
  }
  
  .price {
    font-size: 54px;
  }
  
  .btn--large {
    font-size: 18px;
    padding: 14px 30px;
  }

  .sticky-bar {
    padding: 8px 12px;
  }
}

/* PLAY PAGE STYLING */

.container--full {
  max-width: 100% !important;
  width: 100% !important;
  height: 100dvh !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: var(--paper-2);
  border-bottom: 2.5px solid var(--ink);
  z-index: 10;
}

.header__logo {
  font-family: 'Yusei Magic', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
}

.header__user {
  display: flex;
  align-items: center;
}

#game-container {
  flex: 1;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
}

#game-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.denied {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 40px 20px;
  text-align: center;
}

.denied h1 {
  font-family: 'Yusei Magic', sans-serif;
  font-size: 36px;
  color: var(--coral);
  margin-bottom: 12px;
}

.denied p {
  font-family: 'Klee One', serif;
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

