/* DEVINE Shop: gleiche Optik wie der Ingame-Coinshop (devine_coinshop/css/cases-neo.css + coinshop.css),
   aber in rem statt vh und scrollbar, damit es im Browser auf jedem Bildschirm funktioniert. */

@font-face { font-family: 'AveroText'; src: url('fonts/Gilroy-Medium.ttf'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'AveroText'; src: url('fonts/Gilroy-Semibold.ttf'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'AveroText'; src: url('fonts/Gilroy-Bold.ttf'); font-weight: 700 900; font-display: swap; }
@font-face { font-family: 'AveroTitle'; src: url('fonts/Binaria-Black.ttf'); font-display: swap; }

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

:root {
  --mint: #61ffb6;
  --mint-hi: #9dffd2;
  --mint-lo: #2fb87a;
  --btn: linear-gradient(96deg, #2fb87a, #61ffb6 70%);
  --on-btn: #06140d;
  --green-bg: rgba(97, 255, 182, 0.16);
  --red: #ff3b4e;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --card: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.07);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ff: 'AveroText', 'Segoe UI', system-ui, sans-serif;
  --ff-title: 'AveroTitle', 'AveroText', system-ui, sans-serif;
}

html { background: #02060a; }
body {
  min-height: 100vh;
  font-family: var(--ff);
  color: var(--text);
  background: linear-gradient(180deg, #02060a 0%, #04100d 55%, #031812 100%) fixed;
  overflow-x: hidden;
}
button { border: 0; outline: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- Hintergrund */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora { position: absolute; width: 90vw; height: 60vh; border-radius: 50%; opacity: 0.55; will-change: transform; }
.aurora.a { left: -15vw; top: -22vh; background: radial-gradient(closest-side, rgba(97, 255, 182, 0.26), transparent); animation: drift-a 22s ease-in-out infinite alternate; }
.aurora.b { right: -20vw; top: 4vh; background: radial-gradient(closest-side, rgba(47, 184, 122, 0.2), transparent); animation: drift-b 28s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate3d(14vw, 6vh, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(-12vw, 8vh, 0) scale(1.1); } }
.floor {
  position: absolute; left: -50%; right: -50%; bottom: -2vh; height: 46vh;
  transform: perspective(60vh) rotateX(62deg); transform-origin: 50% 100%;
  background:
    repeating-linear-gradient(90deg, rgba(97, 255, 182, 0.14) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(97, 255, 182, 0.14) 0 1px, transparent 1px 64px);
  -webkit-mask-image: linear-gradient(0deg, #000 10%, transparent 85%);
  mask-image: linear-gradient(0deg, #000 10%, transparent 85%);
  animation: floor-move 5s linear infinite;
}
@keyframes floor-move { to { background-position: 0 0, 0 64px; } }

/* ------------------------------------------------------------------- Layout */
.window { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 36px 24px 28px; min-height: 100vh; display: flex; flex-direction: column; }

.bar { display: flex; align-items: center; gap: 14px; min-height: 56px; flex-wrap: wrap; }
.brand { line-height: 1; margin-right: 4px; }
.brand-name { font-family: var(--ff-title); font-size: 2.4rem; font-weight: 900; letter-spacing: -0.02em; text-transform: uppercase; }
.brand-sub { margin-top: 4px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.36em; color: var(--mint); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 10px;
  padding: 5px 10px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--mint); background: rgba(97, 255, 182, 0.14); border-radius: 4px;
}
.badge svg { width: 14px; height: 14px; }
.meta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px;
  font-size: 0.9rem; font-weight: 700; color: var(--mint); background: var(--green-bg); border-radius: 5px;
}
.chip svg { width: 16px; height: 16px; }
.btn-out {
  height: 36px; padding: 0 14px; display: inline-flex; align-items: center;
  font-size: 0.85rem; font-weight: 600; text-decoration: none; color: var(--muted);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 5px;
  transition: color 0.18s, border-color 0.18s;
}
.btn-out:hover { color: #fff; border-color: rgba(97, 255, 182, 0.5); }

.main { flex: 1; margin-top: 36px; }
.title { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }

/* Meldungen */
.msg { margin-bottom: 18px; padding: 12px 16px; font-size: 0.95rem; font-weight: 600; border-radius: 6px; border: 1px solid var(--line); background: var(--card); animation: rise 0.35s var(--ease); }
.msg.ok { border-color: rgba(97, 255, 182, 0.5); background: var(--green-bg); }
.msg.err { border-color: rgba(255, 59, 78, 0.5); background: rgba(255, 59, 78, 0.12); }

/* ------------------------------------------------------------------- Karten */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card {
  position: relative; display: flex; flex-direction: column; text-align: left; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1px;
  opacity: 0; animation: rise 0.42s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 55ms);
  transition: border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.card:hover { border-color: rgba(97, 255, 182, 0.4); transform: translateY(-2px); }
.card.sel { border-color: var(--mint); box-shadow: 0 0 24px rgba(97, 255, 182, 0.3); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.card-title {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px;
  padding: 8px 10px 8px 14px; background: rgba(255, 255, 255, 0.04); border-radius: 5px 5px 0 0;
}
.card-title p { font-size: 0.9rem; font-weight: 700; line-height: 1.25; }
.price {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; padding: 5px 10px;
  font-size: 0.95rem; font-weight: 800; color: var(--mint); background: var(--green-bg); border-radius: 4px;
}

.card-art { position: relative; height: 150px; display: grid; place-items: center; perspective: 600px; }
.card-art::after {
  content: ''; position: absolute; left: 50%; bottom: 14%; width: 56%; height: 11%; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), transparent);
  animation: shadow 4.2s ease-in-out infinite;
}
@keyframes shadow { 50% { transform: translateX(-50%) scale(0.82); opacity: 0.6; } }
.stack { position: relative; width: 110px; height: 110px; animation: float 4.2s ease-in-out infinite; }
.card:nth-child(2n) .stack { animation-delay: -1.4s; }
.card:nth-child(3n) .stack { animation-delay: -2.8s; }
@keyframes float { 50% { translate: 0 -8px; } }
.stack svg {
  position: absolute; width: 74px; height: 74px; color: var(--mint);
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 12px rgba(97, 255, 182, 0.2));
}

.card-foot { padding: 8px; }
.cs-btn {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 38px; padding: 0 16px;
  font-size: 0.9rem; font-weight: 700; color: var(--on-btn); background: var(--btn); border-radius: 4px;
  text-decoration: none; transition: filter 0.15s, transform 0.12s var(--ease), opacity 0.15s;
}
.cs-btn:hover { filter: brightness(1.12); }
.cs-btn:active { transform: scale(0.98); }
.cs-btn:disabled { opacity: 0.4; pointer-events: none; filter: grayscale(0.6); }
.card-foot .cs-btn { height: 34px; font-size: 0.85rem; }

/* Zahlungsbereich */
.panel { margin-top: 18px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.85rem; line-height: 1.5; color: var(--muted); cursor: pointer; }
.check input { appearance: none; flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; border-radius: 4px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); cursor: pointer; display: grid; place-items: center; }
.check input:checked { background: var(--btn); border-color: var(--mint-hi); }
.check input:checked::after { content: ''; width: 5px; height: 10px; margin-top: -2px; border: solid var(--on-btn); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check input:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.check a { color: var(--mint); }
.pay { display: flex; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.pay .cs-btn { width: auto; min-width: 240px; }
.hint { font-size: 0.8rem; color: var(--muted); }

.login { max-width: 460px; margin: 6vh auto 0; text-align: center; padding: 28px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; animation: rise 0.42s var(--ease); }
.login h2 { font-family: var(--ff-title); font-size: 1.4rem; margin-bottom: 10px; }
.login p { color: var(--muted); font-size: 0.95rem; line-height: 1.5; margin-bottom: 20px; }

/* ----------------------------------------------------------------- Fusszeile */
.foot { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--muted); line-height: 1.7; }
.foot strong { color: rgba(255, 255, 255, 0.85); letter-spacing: 0.02em; }
.foot a { color: var(--muted); }
.foot a:hover { color: #fff; }

@media (max-width: 600px) {
  .window { padding: 20px 16px; }
  .brand-name { font-size: 1.9rem; }
  .meta { margin-left: 0; width: 100%; }
  .pay .cs-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .aurora, .floor, .stack, .card-art::after { animation: none; }
  .card, .login, .msg { animation: none; opacity: 1; }
}

/* Kategorien */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tab {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px;
  font-size: 0.85rem; font-weight: 600; color: var(--muted);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 5px;
  transition: background 0.18s var(--ease), color 0.18s, border-color 0.18s;
}
.tab:hover { color: #fff; border-color: rgba(97, 255, 182, 0.5); }
.tab.is-active { color: var(--on-btn); font-weight: 700; background: var(--btn); border-color: var(--mint-hi); }
.card-desc { padding: 2px 6px 10px; font-size: 0.8rem; line-height: 1.4; color: var(--muted); text-align: center; }
.info { max-width: none; }
.info-title { font-family: var(--ff-title); font-size: 1.2rem; margin-bottom: 8px; }
.info p { color: var(--muted); font-size: 0.92rem; line-height: 1.5; margin-bottom: 16px; }
.info .cs-btn { width: auto; display: inline-flex; min-width: 180px; }

.price svg.mini { width: 14px; height: 14px; }
.chip b { font-weight: 800; }
