/* KONTER! – Puzzle RPG website. Static, no scripts, no external requests. */
@font-face { font-family: "Tinos"; src: url("../fonts/tinos-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("../fonts/rubik.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --paper: #fbf3e1;
  --paper-deep: #f1e3c4;
  --rim: #d9a441;
  --ink: #3a2a1c;
  --ink-soft: #66513c;
  --purple: #6a35c4;
  --purple-deep: #4a2a8c;
  --night: #1f1238;
  --wrap: 1120px;
  --title: "Tinos", Georgia, "Times New Roman", serif;
  --text: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--text); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
a { color: var(--purple-deep); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 5; background: var(--paper); padding: 8px 14px; border-radius: 8px; }

/* Shared parts ------------------------------------------------------------- */
.plate {
  background: linear-gradient(#fffaf0, var(--paper));
  border: 3px solid var(--rim);
  border-radius: 20px;
  box-shadow: inset 0 0 0 2px #fff6dd, 0 10px 26px rgb(50 25 5 / .28);
}
.ribbon {
  display: inline-block;
  padding: 7px 34px 8px;
  color: #fff;
  font: 700 1.05rem/1.2 var(--text);
  letter-spacing: .02em;
  background: linear-gradient(#8a55e6, var(--purple) 55%, #5426a6);
  clip-path: polygon(0 0, 100% 0, calc(100% - 13px) 50%, 100% 100%, 0 100%, 13px 50%);
}
.section-title { font: 700 clamp(2rem, 5.2vw, 3.1rem)/1.1 var(--title); }
.lead { max-width: 60ch; color: var(--ink-soft); }
.phone {
  position: relative;
  aspect-ratio: 658 / 1300;
  padding: 7px;
  border-radius: 34px;
  background: linear-gradient(160deg, #4a3560, #1d1230);
  box-shadow: 0 0 0 2px var(--rim), 0 22px 44px rgb(20 8 30 / .45);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; }

/* Header ------------------------------------------------------------------- */
.top { position: absolute; inset: 0 0 auto; z-index: 3; padding-top: 14px; }
.top .wrap { display: flex; justify-content: flex-end; }
.top nav { display: flex; align-items: center; gap: 2px; padding: 4px 6px; border-radius: 14px; background: rgb(255 248 230 / .92); border: 2px solid var(--rim); }
.top a { padding: 6px 11px; border-radius: 9px; color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none; }
.top a:hover { background: var(--paper-deep); }
.top .lang { margin-left: 4px; background: var(--purple); color: #fff; }
.top .lang:hover { background: var(--purple-deep); }

/* Hero --------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 150px;
  background: #e9b873 url("../img/bg-landschaft.webp") center 21% / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(30 15 50 / .38), rgb(30 15 50 / 0) 62%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 26px; }
.hero h1 img { width: min(100%, 560px); height: auto; filter: drop-shadow(0 8px 14px rgb(40 15 0 / .45)); }
.hero .plate { max-width: 540px; padding: 22px 26px 24px; }
.claim { font: 700 clamp(1.55rem, 3.6vw, 2.1rem)/1.15 var(--title); margin-bottom: 8px; }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; font-size: .95rem; color: var(--ink-soft); }
.status .ribbon { font-size: .95rem; padding-block: 5px 6px; }
.by { margin-top: 12px; padding-top: 10px; border-top: 2px solid var(--paper-deep); font-size: .92rem; color: var(--ink-soft); }
.by strong { color: var(--ink); }
.hero .phone { transform: rotate(2.5deg); animation: float 7s ease-in-out infinite; }
.phone-stage { position: relative; }
.spark { position: absolute; width: 58px; filter: drop-shadow(0 6px 8px rgb(30 10 40 / .4)); animation: float 6s ease-in-out infinite; }
.spark.a { left: -30px; top: 16%; }
.spark.b { right: -26px; bottom: 15%; width: 66px; animation-delay: -3s; }
.hill { position: absolute; inset: auto 0 -1px; width: 100%; height: 90px; color: var(--paper); }
@keyframes float { 50% { translate: 0 -10px; } }

/* Battle ------------------------------------------------------------------- */
.battle { padding: 60px 0 96px; }
.battle-grid { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 64px; align-items: center; }
.steps { list-style: none; padding: 0; margin-top: 30px; display: grid; gap: 26px; }
.steps li { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 22px; align-items: center; }
.steps h3 { font: 700 1.6rem/1.2 var(--title); margin-bottom: 2px; }
.steps p { color: var(--ink-soft); }
.art { display: flex; align-items: center; justify-content: center; gap: 8px; height: 112px; }
.art svg { flex: none; }
.quad { display: grid; grid-template-columns: 34px 34px; gap: 3px; }
.quad svg { width: 34px; height: 34px; }
.arrow { width: 20px; height: 20px; color: var(--rim); }
.big { width: 86px; height: 86px; }
.orb { width: 58px; height: 58px; animation: pulse 2.4s ease-in-out infinite; }
.burst { width: 100px; height: 100px; }
.konter-key {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 176px; padding: 13px 8px;
  border-radius: 13px; border: 3px solid #4d1447;
  background: linear-gradient(#c02aa6, #8a1a78);
  box-shadow: inset 0 2px 0 rgb(255 255 255 / .35), 0 5px 0 #4d1447;
  color: #fff; font: 700 1.1rem/1 var(--text);
  text-shadow: 0 2px 0 #4d1447;
  animation: pulse 2.4s ease-in-out infinite;
}
.konter-key svg { width: 14px; height: 21px; }
@keyframes pulse { 50% { scale: 1.05; } }
.rule { margin-top: 30px; padding-left: 18px; border-left: 4px solid var(--rim); color: var(--ink-soft); }

/* Modes -------------------------------------------------------------------- */
.modes { position: relative; padding: 88px 0 96px; color: #f7efff; background: var(--night) url("../img/bg-runenhalle.webp") center 62% / cover no-repeat; }
.modes::before { content: ""; position: absolute; inset: 0; background: rgb(24 12 50 / .62); }
.modes .wrap { position: relative; }
.modes .lead { color: #dccff5; margin-top: 12px; }
.mode-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 44px; }
.mode .phone { width: min(100%, 264px); margin-bottom: 26px; }
.mode h3 { font: 700 1.75rem/1.2 var(--title); color: #ffe39a; }
.fact { display: block; margin: 2px 0 8px; font-weight: 700; font-size: .92rem; color: #cdb8ff; }

/* Equipment ---------------------------------------------------------------- */
.gear { position: relative; padding: 88px 0; background: #2e4a3a url("../img/bg-waffenkammer.webp") center 34% / cover no-repeat; }
.gear-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: center; }
.gear .plate { padding: 34px 36px 36px; }
.gear .lead { margin-top: 12px; }
.rarity { list-style: none; padding: 0; margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.rarity li { padding: 5px 13px; border-radius: 9px; color: #fff; font-weight: 600; font-size: .95rem; background: var(--c); box-shadow: inset 0 -3px 0 rgb(0 0 0 / .18); }
.more { margin-top: 22px; color: var(--ink-soft); }

/* FAQ ---------------------------------------------------------------------- */
.faq { padding: 84px 0 96px; }
.faq .list { max-width: 780px; margin-top: 30px; }
.faq details { border-bottom: 2px solid var(--paper-deep); }
.faq summary { padding: 15px 34px 15px 0; position: relative; font-weight: 600; font-size: 1.1rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 8px; color: var(--purple); font-size: 1.6rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; color: var(--ink-soft); max-width: 66ch; }

/* Footer ------------------------------------------------------------------- */
.foot { padding: 40px 0 44px; background: var(--night); color: #d5c8ee; font-size: .95rem; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; }
.studio { display: flex; align-items: center; gap: 14px; line-height: 1.3; }
.studio img { width: 104px; height: auto; }
.studio strong { color: #fff; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { color: #f4e9ff; }
.foot small { flex-basis: 100%; font-size: .85rem; color: #a897c9; }

/* Legal pages -------------------------------------------------------------- */
.legal-head { padding: 22px 0; background: var(--night); }
.legal-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.legal-head img { width: 150px; height: auto; }
.legal-head a.lang { color: #fff; font-weight: 600; }
.legal { width: min(100% - 40px, 760px); margin: 0 auto; padding: 44px 0 72px; }
.legal h1 { font: 700 clamp(1.7rem, 7.5vw, 2.7rem)/1.15 var(--title); margin-bottom: 20px; overflow-wrap: anywhere; }
.legal h2 { font: 700 1.4rem/1.25 var(--title); margin: 34px 0 8px; }
.legal p, .legal ul, .legal ol { margin-bottom: 12px; }
.legal li { margin-bottom: 4px; }
.legal .table { overflow-x: auto; }
.legal table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 9px 8px; border-bottom: 2px solid var(--paper-deep); }
.draft { padding: 12px 16px; margin-bottom: 26px; border: 3px solid #b3261e; border-radius: 12px; background: #fdeceb; color: #8c1d18; font-weight: 600; }
.note { padding: 12px 16px; margin-bottom: 26px; border-radius: 12px; background: var(--paper-deep); }
.blocker { padding: 0 4px; border-radius: 4px; background: #fdeceb; color: #b3261e; font-weight: 700; }
.center { min-height: 70vh; display: grid; place-content: center; text-align: center; padding: 40px 20px; }
.center h1 { font: 700 2.4rem/1.2 var(--title); margin-bottom: 10px; }

/* Smaller screens ---------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid, .battle-grid, .gear-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero { padding: 84px 0 120px; background-position: 62% top; }
  .hero::before { background: linear-gradient(rgb(30 15 50 / .3), rgb(30 15 50 / 0) 40%); }
  .hero h1 img, .hero .plate { margin-inline: auto; }
  .phone-stage { width: min(72vw, 300px); margin-inline: auto; }
  .battle-grid .phone-stage { order: 2; }
  .gear-grid .phone-stage { width: min(70vw, 280px); }
  .mode-row { display: flex; gap: 22px; margin-inline: -20px; padding: 0 20px 12px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .mode { flex: 0 0 min(78vw, 300px); scroll-snap-align: center; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .top a { padding: 5px 8px; font-size: .85rem; }
  .hero .plate { padding: 18px 18px 20px; }
  .spark.a { left: -22px; }
  .spark.b { right: -22px; }
  .steps li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .art { justify-content: flex-start; }
  .gear .plate { padding: 24px 20px 26px; }
  .hill { height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
