:root {
  --cursor-default: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='11' fill='none' stroke='%235a0b19' stroke-width='2'/%3E%3Ccircle cx='14' cy='14' r='3' fill='%23ff365f'/%3E%3C/svg%3E")
    14 14, crosshair;
  --cursor-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='11' fill='%231a0004' stroke='%23ff365f' stroke-width='2'/%3E%3Ccircle cx='14' cy='14' r='2.5' fill='%23ff8aa3'/%3E%3C/svg%3E")
    14 14, pointer;
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-color: #7a1028 #0a0406;
  scrollbar-width: thin;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: #0a0406;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #8f1530, #4a0818);
  border-radius: 8px;
  border: 2px solid #0a0406;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #b31535, #6f0b20);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 500;
  background: radial-gradient(circle at 20% 20%, #1a0004 0%, #050506 50%, #000 100%);
  color: #f8d9df;
  overflow: hidden;
  cursor: var(--cursor-default);
}

a,
button,
.captcha-trigger,
.btn {
  cursor: var(--cursor-pointer);
}

.container {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
}

.container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 3px,
    transparent 6px
  );
  pointer-events: none;
  animation: pulse-lines 4s linear infinite;
}

.app-page .view .container {
  padding: 16px 16px 72px;
}

.view.is-hidden {
  display: none !important;
}

.home-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 2.5vh, 26px);
  width: min(900px, 100%);
  text-align: center;
  position: relative;
  z-index: 1;
}

h1 {
  margin: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: Cinzel, "Times New Roman", serif;
  font-weight: 700;
}

.subtitle {
  color: #d7a5ae;
  margin: 0;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
}

.action-row .btn {
  flex: 0 0 auto;
  text-align: center;
}

.btn-discord {
  background: linear-gradient(180deg, #5865f2, #4752c4);
  border-color: #8896ff;
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.45);
}

.btn-discord:hover {
  background: linear-gradient(180deg, #6b77f5, #5865f2);
  box-shadow: 0 0 22px rgba(121, 131, 245, 0.55);
}

.countdown {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(2.2rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.05;
  min-height: 1.05em;
  color: #ff3b5f;
  text-shadow: 0 0 12px rgba(255, 42, 81, 0.65);
}

.eyebrow {
  margin: 0;
  color: #ff6b86;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: clamp(0.68rem, 1.6vw, 0.82rem);
  font-family: Cinzel, "Times New Roman", serif;
  font-weight: 600;
}

.creepy-copy {
  color: #e8c8cf;
  line-height: 1.65;
  margin: 0;
  font-size: clamp(1.2rem, 3.2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.glitch-title {
  color: #ffe8ed;
  text-shadow: 1px 0 #a30022, -1px 0 #38000d, 0 0 14px rgba(255, 64, 96, 0.55);
  animation: glitch-flicker 2.6s infinite;
  font-family: Cinzel, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 5.5vw, 2.85rem);
  line-height: 1.18;
  max-width: 100%;
}

.glitch-text {
  position: relative;
  display: block;
  max-width: 100%;
  padding: 0.2em 0 0.42em;
  isolation: isolate;
}

.glitch-text:not(.creepy-copy):not(.captcha-status) {
  overflow: hidden;
}

.creepy-copy.glitch-text,
.captcha-status.glitch-text {
  overflow: visible;
  padding-bottom: 0.35em;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  pointer-events: none;
  opacity: 0;
}

.glitch-text::before {
  color: #ff1d4d;
  transform: translate(2px, 0);
}

.glitch-text::after {
  color: #8b001f;
  transform: translate(-2px, 0);
}

.broken-red {
  color: #ff1e47;
  text-shadow: 0 0 14px rgba(255, 25, 71, 0.8), 0 0 28px rgba(189, 7, 44, 0.45);
  animation: red-broken 0.14s steps(2, end) infinite;
}

.broken-red.is-broken::before,
.broken-red.is-broken::after {
  opacity: 0.95;
}

.broken-red.is-broken::before {
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 54%);
  transform: translate(8px, -2px);
}

.broken-red.is-broken::after {
  clip-path: polygon(0 56%, 100% 44%, 100% 100%, 0 100%);
  transform: translate(-10px, 2px);
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(180deg, #9d112d, #6f0b20);
  border: 1px solid #d64562;
  font-family: Cinzel, "Times New Roman", serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(211, 34, 69, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  background: linear-gradient(180deg, #b31535, #7a0e25);
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(255, 52, 92, 0.55);
}

.btn-secondary {
  background: linear-gradient(180deg, #330b13, #1f070d);
  border-color: #6f1b2b;
}

.btn-secondary:hover {
  background: linear-gradient(180deg, #43101b, #2b0b12);
}

.captcha-stack {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 3vh, 24px);
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.captcha-stack .subtitle {
  margin-bottom: 0;
}

.captcha-trigger {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #833041;
  background: radial-gradient(circle at 35% 35%, #1f0c12 0%, #090809 70%);
  display: grid;
  place-items: center;
  position: relative;
  flex: 0 0 auto;
}

.captcha-ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(255, 57, 96, 0.3);
  border-top-color: #ff365f;
  opacity: 0;
}

.captcha-check {
  position: absolute;
  font-weight: 700;
  color: #ffdce3;
  opacity: 0;
  transform: scale(0.7);
}

.captcha-status {
  margin: 0;
  max-width: min(36ch, 100%);
  color: #efc0ca;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  font-weight: 500;
  line-height: 1.55;
  text-align: center;
  letter-spacing: 0.03em;
}

.captcha-trigger.is-loading .captcha-ring {
  opacity: 1;
  animation: captcha-spin 0.8s linear infinite;
}

.captcha-trigger.is-loading .captcha-check {
  opacity: 0;
}

.captcha-trigger.is-success {
  border-color: #ff4f75;
  box-shadow: 0 0 18px rgba(255, 48, 91, 0.5);
}

.captcha-trigger.is-success .captcha-ring {
  opacity: 0;
  animation: none;
}

.captcha-trigger.is-success .captcha-check {
  opacity: 1;
  transform: scale(1);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@keyframes red-broken {
  0%,
  100% {
    transform: translate(0);
    opacity: 1;
  }
  30% {
    transform: translate(-1px, 0);
    opacity: 0.9;
  }
  60% {
    transform: translate(1px, 0);
    opacity: 0.82;
  }
}

@keyframes captcha-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes glitch-flicker {
  0%,
  100% {
    opacity: 1;
    transform: translate(0);
  }
  20% {
    opacity: 0.85;
    transform: translate(-1px, 0);
  }
  21% {
    opacity: 0.65;
    transform: translate(1px, -1px);
  }
  22% {
    opacity: 1;
    transform: translate(0);
  }
  56% {
    opacity: 0.72;
  }
  58% {
    opacity: 1;
  }
}

@keyframes pulse-lines {
  from {
    opacity: 0.25;
  }
  50% {
    opacity: 0.12;
  }
  to {
    opacity: 0.25;
  }
}

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 12px 16px 14px;
  text-align: center;
  font-family: Cinzel, "Times New Roman", serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a67884;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), transparent);
  pointer-events: none;
}

.site-footer a,
.site-footer button.site-footer-link {
  pointer-events: auto;
  color: #d7a5ae;
  text-decoration: none;
  display: inline-block;
  margin-top: 4px;
  letter-spacing: 0.1em;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
}

.site-footer button.site-footer-link:hover {
  color: #ff8aa3;
}

.site-footer a:hover {
  color: #ff8aa3;
}

.site-footer-copy {
  margin: 0;
}

.view-policy {
  position: fixed;
  inset: 0;
  z-index: 8;
  overflow-x: hidden;
  overflow-y: auto;
  background: radial-gradient(circle at 20% 20%, #1a0004 0%, #050506 50%, #000 100%);
  padding-bottom: 88px;
}

.view-policy::before {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 3px,
    transparent 6px
  );
  pointer-events: none;
  animation: pulse-lines 4s linear infinite;
  z-index: 0;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.8vh, 18px) clamp(14px, 3.5vw, 36px);
  max-width: min(1080px, 100%);
  margin: 0 auto;
  padding: clamp(12px, 2.5vh, 24px) clamp(14px, 4vw, 40px) 24px;
  align-content: start;
  position: relative;
  z-index: 1;
}

.policy-grid .policy-back {
  grid-column: 1 / -1;
}

.policy-grid > h1 {
  grid-column: 1 / -1;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  margin: 0;
  text-align: left;
}

.policy-intro {
  grid-column: 1 / -1;
  margin: 0;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(1rem, 2.1vw, 1.2rem);
  line-height: 1.45;
  color: #e8c8cf;
  text-align: left;
}

.policy-panel {
  margin: 0;
  padding: 0;
}

.policy-panel h2 {
  font-family: Cinzel, "Times New Roman", serif;
  font-size: clamp(0.72rem, 1.5vw, 0.82rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff6b86;
  margin: 0 0 clamp(6px, 1vh, 10px);
  font-weight: 600;
}

.policy-panel p {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(0.95rem, 1.85vw, 1.1rem);
  line-height: 1.45;
  color: #e8c8cf;
  margin: 0;
}

.policy-back {
  display: inline-block;
  margin-bottom: 2px;
  font-family: Cinzel, "Times New Roman", serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d7a5ae;
  text-decoration: none;
  width: fit-content;
  background: none;
  border: none;
  padding: 0;
  cursor: var(--cursor-pointer);
}

.policy-back:hover {
  color: #ff8aa3;
}

.view-policy code {
  font-size: 0.92em;
  color: #ffc2cf;
  background: rgba(0, 0, 0, 0.35);
  padding: 1px 6px;
  border-radius: 4px;
}

@media (max-width: 720px) {
  .policy-grid {
    grid-template-columns: 1fr;
  }
}

/* Pełny ekran: tylko urządzenia mobilne / wąski viewport */
.view-mobile-only {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 5vw, 32px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-only-backdrop {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 120% 80% at 50% 20%, #2a0610 0%, #050506 45%, #000 100%);
  pointer-events: none;
}

.mobile-only-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.03) 0px,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 3px,
    transparent 6px
  );
  animation: pulse-lines 4s linear infinite;
  opacity: 0.85;
}

.mobile-only-main {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 3.5vw, 22px);
  padding: clamp(28px, 6vw, 40px) clamp(22px, 5vw, 32px);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(42, 8, 18, 0.92) 0%, rgba(12, 4, 8, 0.94) 100%);
  border: 1px solid rgba(255, 80, 110, 0.22);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 24px 48px rgba(0, 0, 0, 0.55), 0 0 60px rgba(139, 0, 31, 0.15);
}

.mobile-only-icon-wrap {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ff6b86;
  background: radial-gradient(circle at 40% 35%, rgba(255, 80, 110, 0.18) 0%, rgba(10, 2, 6, 0.9) 70%);
  border: 1px solid rgba(255, 80, 110, 0.35);
  box-shadow: 0 0 24px rgba(255, 54, 95, 0.25);
}

.mobile-only-icon {
  width: 52px;
  height: auto;
}

.mobile-only-eyebrow {
  margin: 0;
  font-family: Cinzel, "Times New Roman", serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: #ff8aa3;
}

.mobile-only-title {
  margin: 0;
  font-family: Cinzel, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 5.2vw, 1.75rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffe8ed;
  text-shadow: 1px 0 #a30022, -1px 0 #38000d, 0 0 14px rgba(255, 64, 96, 0.45);
  line-height: 1.2;
  max-width: 100%;
  animation: glitch-flicker 3.2s infinite;
}

.mobile-only-title.glitch-text {
  overflow: visible;
}

.mobile-only-lead,
.mobile-only-hint {
  margin: 0;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(1.1rem, 3.8vw, 1.28rem);
  line-height: 1.55;
  color: #e8c8cf;
  font-weight: 500;
}

.mobile-only-lead strong {
  color: #ffc9d4;
  font-weight: 600;
}

.mobile-only-hint {
  font-size: clamp(1rem, 3.2vw, 1.12rem);
  color: #c49aa5;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 80, 110, 0.12);
  width: 100%;
}

.desktop-game-shell {
  min-height: 100vh;
}

@media (max-width: 900px) {
  .view-mobile-only {
    display: flex;
  }

  .desktop-game-shell {
    display: none !important;
  }

  body.app-page {
    overflow: auto;
  }
}
