/* la2web.com -- the la2-c4 template's colours, icons and banner, reworked: text instead of baked captions, any language,
   phones too */
:root {
  --ink: #422423;          /* the template's brown text */
  --ink-soft: #6b4a3c;
  --paper: #f4ead2;
  --paper-2: #e9d9b5;
  --line: #c9ac78;
  --gold: #e8c46a;
  --dark: #2a1716;
  --dark-2: #3b211f;
  --ok: #3b7d2c;
  --err: #a62a1f;
  --head: 'Kurale', 'Noto Sans KR', 'Noto Sans JP', Georgia, serif;
  --body: 'Noto Sans', 'Noto Sans KR', 'Noto Sans JP', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font: 16px/1.55 var(--body); background: var(--dark); }
/* the template's art behind the whole page: fixed to the window, the panels scroll over it (a fixed layer, not
   background-attachment: fixed, which phones ignore) */
body::before { content: ''; position: fixed; inset: 0; z-index: -1; background: var(--dark) url(../img/ambient-v4.jpg) center / cover no-repeat; }
/* the picture whole, in its own 4:3, as large as the window allows (fluid: it and everything on it scale with the
   window, nothing cropped); its edges fade into the blurred copy behind the page */
.stage { position: relative; width: min(100%, calc(100svh * 4 / 3)); aspect-ratio: 4 / 3; max-height: 100svh; margin: 0 auto;
  display: flex; flex-direction: column; background: url(../img/stage-v4.jpg) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(#000 88%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(#000 88%, transparent); mask-composite: intersect; }
.stage .top { width: 100%; max-width: none; padding-inline: 6%; }
a { color: inherit; }
img { max-width: 100%; }

/* ---- header ---- */
.top {
  position: relative; z-index: 5; max-width: 1240px; margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; gap: 18px;
}
.logo { text-decoration: none; display: flex; flex-direction: column; line-height: 1; padding: 6px 14px 8px; border-radius: 8px;
  background: linear-gradient(#a01d1dcc, #6d1010cc); box-shadow: 0 2px 10px #0006; }
.logo-main { font: 34px/1 var(--head); color: #fff4d6; letter-spacing: 1px; text-shadow: 0 2px 0 #3a0b0b; }
.logo-main b { color: var(--gold); font-weight: normal; }
.logo-sub { font: 12px/1.2 var(--head); color: #ffe7b0; letter-spacing: .5px; margin-top: 3px; }
.menu { display: flex; gap: 4px; margin-left: auto; }
.m { width: clamp(70px, 9vh, 104px); height: clamp(60px, 8.5vh, 82px); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-decoration: none;
  border-radius: 10px; padding-bottom: 6px; transition: background .2s; }
.m i { width: 61px; height: 50px; background: center bottom no-repeat; display: block; }
.m span { font: clamp(12px, 1.7vh, 16px)/1.1 var(--head); color: #fff5dc; text-shadow: 0 1px 2px #000, 0 0 6px #000; text-align: center; margin-top: 2px; }
.m:hover, .m:focus-visible { background: #0003; }
.m-gl i { background-image: url(../img/menu/gl.png); } .m-gl:hover i { background-image: url(../img/menu/gl_hover.png); }
.m-ab i { background-image: url(../img/menu/ab.png); } .m-ab:hover i { background-image: url(../img/menu/ab_hover.png); }
.m-don i { background-image: url(../img/menu/don.png); } .m-don:hover i { background-image: url(../img/menu/don_hover.png); }
.m-forum i { background-image: url(../img/menu/forum.png); } .m-forum:hover i { background-image: url(../img/menu/forum_hover.png); }
.m-stat i { background-image: url(../img/menu/stat.png); } .m-stat:hover i { background-image: url(../img/menu/stat_hover.png); }
.tools { display: flex; gap: 8px; align-items: center; }
.music { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--gold); background: #2a1716cc; cursor: pointer; display: grid; place-items: center; }
.music-ico { width: 18px; height: 18px; background: var(--gold);
  clip-path: polygon(0 30%, 30% 30%, 70% 0, 70% 100%, 30% 70%, 0 70%); opacity: .55; }
.music[aria-pressed="true"] .music-ico { opacity: 1; }
.music[aria-pressed="true"] { box-shadow: 0 0 10px var(--gold); }
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; color: #fff5dc; background: #2a1716cc; border: 2px solid var(--gold); border-radius: 20px;
  padding: 7px 14px; font: 14px var(--body); white-space: nowrap; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after { content: ' ▾'; color: var(--gold); }
.langs ul { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--paper);
  border: 2px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px #0008; min-width: 190px; max-height: 70vh; overflow: auto; }
.langs a { display: block; padding: 6px 10px; text-decoration: none; border-radius: 6px; }
.langs a:hover, .langs a[aria-current] { background: var(--paper-2); font-weight: 700; }

/* ---- hero over the banner: the middle between the knight and the golem ---- */
.hero { flex: 1; min-height: 0; display: flex; justify-content: center; align-items: flex-start; }
.hero-inner { width: min(520px, 46%); text-align: center; padding: clamp(8px, 3vh, 40px) 0 0; display: flex; flex-direction: column; align-items: center; gap: clamp(6px, 1.6vh, 16px); }
.hero-title { font: clamp(26px, 4.6vh, 46px)/1.1 var(--head); color: #fffaf0; text-shadow: 0 3px 0 #5a2a1a, 0 0 18px #0009; margin: 0; }
.hero-lead { margin: 0; color: #fff; font-size: clamp(14px, 1.9vh, 18px); text-shadow: 0 1px 3px #000, 0 0 10px #000a; }
.newgame { display: flex; flex-direction: column; align-items: center; text-decoration: none; padding: 8px 26px 14px; border-radius: 16px;
  background: radial-gradient(ellipse at center, #fff8e6ee, #f1dcb0dd); border: 3px solid var(--gold); box-shadow: 0 6px 24px #0007; transition: transform .15s; }
.newgame i { width: clamp(90px, 13vh, 138px); aspect-ratio: 138 / 87; background: url(../img/newgame.png) center / contain no-repeat; }
.newgame:hover i { background-image: url(../img/newgame_hover.png); background-size: contain; }
.newgame:hover { transform: translateY(-2px) scale(1.02); }
.newgame span { font: clamp(22px, 3.4vh, 34px)/1 var(--head); color: #5a1b14; }
.newgame small { color: var(--ink-soft); font-size: 13px; margin-top: 4px; }
.status { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.srv { display: flex; align-items: center; gap: 8px; background: #2a1716d9; color: #fff5dc; border: 2px solid var(--gold); border-radius: 14px; padding: 4px 14px 4px 6px; }
.srv b { font: 18px/1.1 var(--head); display: block; }
.s-img { width: 46px; height: 41px; background: url(../img/off.png) center / contain no-repeat; }
.srv.up .s-img { background-image: url(../img/on.png); }
.s-state { font-size: 13px; }
.srv.up .s-state { color: #9be07d; } .srv.down .s-state { color: #ff9b8a; }
.srv-online { flex-direction: column; gap: 0; padding: 6px 16px; }
.srv-online .s-online { font: 30px/1 var(--head); color: var(--gold); }
.srv-online span { font-size: 12px; }
.lk { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: #fff5dc; font: 20px var(--head); text-shadow: 0 1px 3px #000; }
.lk i { width: 34px; height: 46px; background: url(../img/lk.png) center no-repeat; }
.lk:hover i { background-image: url(../img/lk_hover.png); }

/* ---- content panels ---- */
main { max-width: min(1100px, 92vw); margin: 0 auto; padding: 24px 16px 0; display: flex; flex-direction: column; gap: 22px; }
.panel { background: linear-gradient(var(--paper), var(--paper-2)); border: 2px solid var(--line); border-radius: 14px; padding: 22px 26px;
  box-shadow: 0 10px 30px #0006, inset 0 0 40px #c9ac7844; }
.sec-title { font: 30px/1.15 var(--head); color: var(--ink); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.sec-news i { width: 34px; height: 37px; background: url(../img/news.png) center no-repeat; flex: none; }
.lead { margin: 0 0 14px; color: var(--ink-soft); }
.empty { color: var(--ink-soft); font-style: italic; }

.news-item { display: flex; gap: 14px; padding: 12px 0; background: url(../img/line_news.png) left bottom no-repeat; }
.news-ico { width: 45px; height: 45px; flex: none; background: url(../img/news_img.png) center no-repeat; border-radius: 6px; }
.news-main { flex: 1; min-width: 0; }
.news-item h3 { margin: 0; font: 20px/1.25 var(--head); }
.news-toggle { all: unset; cursor: pointer; color: var(--ink); }
.news-toggle:hover, .news-toggle:focus-visible { text-decoration: underline; }
.news-item time { font-size: 12px; font-weight: 700; color: #1f1f1f; }
.news-body { margin-top: 8px; }
.news-body p { margin: 0 0 8px; }

.feats { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.feats li { background: #fffaf0aa; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.feats h3 { margin: 0 0 4px; font: 20px/1.2 var(--head); }
.feats p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.rates-title { font: 22px var(--head); margin: 6px 0 8px; }
.rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 0; }
.rates div { background: var(--dark-2); color: #fff5dc; border-radius: 10px; padding: 8px 12px; text-align: center; }
.rates dt { font-size: 13px; }
.rates dd { margin: 0; font: 28px/1.1 var(--head); color: var(--gold); }

.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.video { margin: 0; }
.video-play, .video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; display: block; }
.video-play { cursor: pointer; background: #000 center / cover; position: relative; }
.video-btn { position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; border-radius: 12px; background: #c00d; }
.video-btn::after { content: ''; position: absolute; left: 27px; top: 14px; border: 10px solid transparent; border-left: 16px solid #fff; border-right: 0; }
.video figcaption { font-size: 14px; margin-top: 6px; }

.two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; }
.form { display: flex; flex-direction: column; gap: 10px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.form input:not([type=checkbox]) { font: 16px var(--body); padding: 10px 12px; border: 2px solid var(--line); border-radius: 8px; background: #fffdf6; color: var(--ink); }
.form input:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
.form .check { flex-direction: row; align-items: center; font-weight: 400; gap: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn { font: 22px var(--head); color: #fff5dc; cursor: pointer; border: 2px solid var(--gold); border-radius: 10px; padding: 10px 18px;
  background: linear-gradient(#a01d1d, #6d1010); box-shadow: 0 3px 0 #3a0b0b; }
.btn:hover { filter: brightness(1.1); }
.btn:disabled { opacity: .6; cursor: wait; }
.msg { margin: 0; min-height: 1.4em; font-weight: 700; }
.msg.ok { color: var(--ok); } .msg.err { color: var(--err); }
.play-again { display: inline-block; margin-top: 18px; font: 20px var(--head); color: #8a1a12; }

.foot { text-align: center; color: #fff5dc; padding: 30px 16px 40px; font-size: 14px; text-shadow: 0 1px 3px #000; }
.foot .small, .foot p { background: #2a1716b3; display: inline-block; padding: 4px 12px; border-radius: 8px; }
.foot .small { font-size: 12px; opacity: .7; max-width: 760px; margin: 6px auto 0; }

/* ---- smaller screens ---- */
@media (max-width: 1100px) {
  .menu .m { width: 84px; }
  .m span { font-size: 14px; }
}
@media (max-width: 860px) {
  .stage { width: 100%; aspect-ratio: auto; max-height: none; min-height: 100svh; background-image: url(../img/stage_m-v4.jpg); background-position: 62% center;
    -webkit-mask-image: linear-gradient(#000 92%, transparent); mask-image: linear-gradient(#000 92%, transparent); }
  .hero-inner { width: 100%; padding: 12px 16px 24px; }
  .top { flex-wrap: wrap; gap: 10px; }
  .menu { order: 3; width: 100%; justify-content: space-between; margin: 0; overflow-x: auto; }
  .tools { margin-left: auto; }
  .m { width: auto; min-width: 64px; height: 68px; flex: 1; }
  .m i { transform: scale(.8); transform-origin: center bottom; height: 42px; }
  .m span { font-size: 12px; }
  .hero { min-height: 0; }
  .hero-inner { padding-top: 20px; }
  .hero-title { font-size: 34px; }
  .two { grid-template-columns: 1fr; }
  .panel { padding: 18px 16px; }
}

/* ---- one screen: the picture is the page; the content opens as windows over it ---- */
html, body { height: 100%; overflow: hidden; }
.stage { height: 100svh; width: min(100%, calc(100svh * 4 / 3)); max-height: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); }
.windows { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: #120a09a6; max-width: none; margin: 0; gap: 0; }
.windows[hidden], .win[hidden] { display: none !important; }
.win { position: relative; width: min(920px, 100%); max-height: calc(100svh - 32px); overflow: auto; overscroll-behavior: contain; animation: win-in .18s ease-out; }
.two.win { padding: 0; background: none; border: 0; box-shadow: none; }
.two.win > .panel { max-height: none; }
.win-close { position: absolute; top: 10px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line);
  background: var(--dark-2); color: #fff5dc; font: 22px/1 var(--body); cursor: pointer; }
.win-close:hover, .win-close:focus-visible { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px #e8c46a66; }
@keyframes win-in { from { transform: translateY(10px) scale(.98); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .win { animation: none; } }
.foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; padding: 0 16px 8px; pointer-events: none; }
.foot p { pointer-events: auto; margin: 0 2px; font-size: 11px; }
.foot .small { display: none; }
.foot:hover .small { display: inline-block; }
@media (max-width: 860px) {
  .stage { width: 100%; height: 100svh; min-height: 0; }
  .hero-inner { padding-bottom: 40px; }
  .win { max-height: calc(100svh - 24px); }
  .windows { padding: 12px; }
}
@media (max-height: 560px) and (min-width: 861px) { .hero-lead { display: none; } }

/* ---- the logo (inline svg: its Cinzel faces come with the page) ---- */
.logo { background: none; box-shadow: none; padding: 0; border-radius: 0; }
.logo-svg { display: block; width: clamp(200px, 30vh, 340px); height: auto; }
/* ---- About: features and screenshots ---- */
#about.win { width: min(1040px, 100%); }
.sub-title { font: 22px/1.2 var(--head); margin: 16px 0 10px; }
.feats { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feats h4 { margin: 0 0 4px; font: 19px/1.2 var(--head); padding-left: 30px; position: relative; }
.feats h4::before { content: ''; position: absolute; left: 4px; top: 5px; width: 12px; height: 12px; transform: rotate(45deg);
  background: linear-gradient(135deg, #fff3c4, #d9a441 55%, #8a5a14); box-shadow: 0 0 0 2px #5a3608; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.shot { display: block; border-radius: 8px; overflow: hidden; border: 2px solid var(--line); background: #000; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .2s; }
.shot:hover img, .shot:focus-visible img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; z-index: 40; background: #000d; display: grid; place-items: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 10px 40px #000; }
/* the 3D picture (js/stage3d.js) under the stage's content; the CSS background shows until it is in */
.stage-3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.stage > .top, .stage > .hero { position: relative; z-index: 1; }

/* ---- the dragon scene (16:9): fills a 16:9 window whole; wider ones get the blurred copy at the sides ---- */
body::before { background-image: url(../img/ambient-v5.jpg); }
.stage { width: min(100%, calc(100svh * 16 / 9)); aspect-ratio: 16 / 9; height: auto; max-height: 100svh; margin: 0 auto;
  background-image: url(../img/hero-v5.jpg); }
@media (min-aspect-ratio: 16/9) { .stage { height: 100svh; } }
@media (max-aspect-ratio: 16/9) { .stage { height: 100svh; width: 100%; aspect-ratio: auto; } }
@media (max-width: 860px) { .stage { background-image: url(../img/hero_m-v5.jpg); background-position: 50% center; } }

/* ---- first visit: the fire, a flash, embers fly into the logo, then the interface comes up ---- */
.intro-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 3; transition: opacity .45s; background: #000; }
.intro-video.gone { opacity: 0; }
.flash { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 42% 38%, #fff8dc 0%, #ffc164 30%, #d2521a 62%, #3a0c03 100%); }
.flash.go { animation: flash 1.1s ease-out both; }
@keyframes flash { 0% { opacity: 0; } 22% { opacity: .95; } 100% { opacity: 0; } }
.skip { position: absolute; right: 4%; bottom: 7%; z-index: 6; font: 15px var(--body); color: #fff5dc; background: #2a1716b3;
  border: 1px solid var(--gold); border-radius: 18px; padding: 6px 16px; cursor: pointer; }
.skip:hover, .skip:focus-visible { background: #2a1716; outline: none; box-shadow: 0 0 0 3px #e8c46a55; }
body.intro-on .stage > .top, body.intro-on .hero-inner > *, body.intro-on .foot { opacity: 0; }
.stage > .top, .hero-inner > *, .foot { transition: opacity .7s ease, transform .7s ease; }
body.reveal .stage > .top { animation: rise .8s ease both; animation-delay: .5s; }
body.reveal .hero-inner > * { animation: rise .7s ease both; animation-delay: calc(.9s + var(--i, 0) * .14s); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.spark { position: absolute; left: 0; top: 0; width: 5px; height: 5px; margin: -2px; border-radius: 50%; z-index: 5; pointer-events: none;
  background: #ffe2a0; box-shadow: 0 0 6px 2px #ff9a3c, 0 0 14px 4px #ff6a1a66;
  transition: transform 1.2s cubic-bezier(.25, .7, .3, 1), opacity 1.2s ease-in; }
.logo.lit .logo-svg { animation: logo-lit 1.8s ease-out both; }
@keyframes logo-lit { 0% { opacity: 0; filter: brightness(2.6) drop-shadow(0 0 22px #ffb347); } 25% { opacity: 1; } 100% { opacity: 1; filter: none; } }
.newgame.pulse { animation: rise .7s ease both, pulse 1.4s 1.6s ease-in-out 2; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px #e8c46a66, 0 0 34px #ffb347; transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { body.reveal .stage > .top, body.reveal .hero-inner > *, .newgame.pulse, .logo.lit .logo-svg { animation: none; } }

/* ---- the scene in layers (no stretching): the cave + dragon plate, the dark elf, the high elf; each moved whole
   by the mouse at its own depth, the set slightly turned in perspective ---- */
.scene { position: absolute; inset: 0; overflow: hidden; z-index: 0; container-type: size; perspective: 1400px; }
.scene-in { position: absolute; left: 50%; top: 50%; width: max(100cqw, calc(100cqh * 16 / 9)); aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%) scale(1.07); transform-style: preserve-3d; will-change: transform; }
.ly { position: absolute; display: block; height: auto; will-change: transform; user-select: none; -webkit-user-drag: none; }
.ly-back { inset: 0; width: 100%; height: 100%; }
.dragon-spot { position: absolute; left: 31%; top: 0; width: 34%; height: 46%; z-index: 3; background: none; border: 0; padding: 0;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ctext y='26' font-size='26'%3E🔥%3C/text%3E%3C/svg%3E") 8 24, pointer; }
.stage-3d { display: none !important; }
.intro-video { z-index: 1; }
.stage > .top, .stage > .hero { z-index: 2; }
.hero, .hero-inner { pointer-events: none; }
.hero-inner > * { pointer-events: auto; }
.intro-video.fire { opacity: 1; }
@media (max-width: 860px) { .scene-in { width: max(100cqw, calc(100cqh * 16 / 9)); } }

/* ---- the selling points in the middle (instead of the button / status / account), the logo's steel and fire ---- */
.usp { list-style: none; margin: clamp(4px, 2vh, 18px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: clamp(6px, 1.2vh, 12px); width: min(760px, 100%); }
.hero-inner { width: min(760px, 60%); }
.usp li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left;
  padding: clamp(6px, 1.2vh, 10px) 14px; border-radius: 10px; background: linear-gradient(#0d1520e6, #070c14e6);
  border: 1px solid #3b4a5d; box-shadow: inset 0 1px 0 #ffffff14, 0 0 0 1px #00000080, 0 6px 18px #0009; }
.usp li::before { content: ''; grid-column: 1 / -1; grid-row: 1; height: 2px; margin: -6px -8px 6px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #c99a3e, #fff0c2, #c99a3e, transparent); align-self: start; display: none; }
.usp svg { grid-row: 1 / 3; width: clamp(26px, 3.6vh, 34px); height: auto; fill: none; stroke: #ffb35a; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px #ff7a2699); }
.usp b { font: clamp(15px, 2vh, 19px)/1.15 var(--head); color: #e7eef6; text-shadow: 0 1px 2px #000; }
.usp span { font-size: clamp(11px, 1.45vh, 13px); color: #a9b8c9; line-height: 1.3; }
.usp li:hover { border-color: #c99a3e; }
.usp-dev { grid-column: 1 / -1; }
/* the play button in the header: steel and fire, with the online count */
.play-top { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; padding: 6px 18px 5px;
  border-radius: 10px; border: 1px solid #c99a3e; background: linear-gradient(#b8401a, #7a1d06); box-shadow: 0 0 14px #ff7a2680, inset 0 1px 0 #ffd27a88;
  color: #fff4dc; font: clamp(17px, 2.3vh, 22px)/1 var(--head); text-shadow: 0 1px 2px #3a0b03; transition: filter .2s, box-shadow .2s; margin-left: 6px; }
.play-top:hover, .play-top:focus-visible { filter: brightness(1.12); box-shadow: 0 0 24px #ffb347cc, inset 0 1px 0 #ffe2a0; outline: none; }
.play-top small { font: 11px/1.2 var(--body); color: #ffe2b8; margin-top: 3px; display: flex; align-items: center; gap: 4px; }
.play-top .dot { width: 7px; height: 7px; border-radius: 50%; background: #888; display: inline-block; }
.srv-mini.up .dot { background: #6be05a; box-shadow: 0 0 6px #6be05a; } .srv-mini.down .dot { background: #e0574a; }
.play-top.pulse { animation: pulse 1.4s 1.2s ease-in-out 2; }
@media (max-width: 860px) {
  .hero-inner { width: 100%; }
  .usp { grid-template-columns: 1fr 1fr; }
  .usp li { padding: 6px 8px; column-gap: 6px; }
  .usp span { display: none; }
  .play-top { order: 2; padding: 5px 12px; }
}
/* 1 wide + 2 x 2, never an orphan */
.usp { grid-template-columns: 1fr 1fr; width: min(640px, 100%); }
.hero-inner { width: min(640px, 56%); }
@media (max-width: 860px) { .hero-inner { width: 100%; } .usp { width: 100%; } }

/* ---- SEO: the kicker over the keyword H1, the FAQ, topic links, keyword pages ---- */
.hero-kicker { margin: 0; font: clamp(13px, 1.7vh, 16px)/1.2 'Cinzel', var(--head); letter-spacing: 3px; text-transform: uppercase; color: #ffd27a; text-shadow: 0 1px 3px #000, 0 0 10px #ff7a2666; }
.hero-title { font-size: clamp(24px, 4vh, 42px); }
.faq { margin: 0 0 8px; display: grid; gap: 4px 0; }
.faq dt { font: 18px/1.25 var(--head); margin-top: 8px; }
.faq dd { margin: 0; color: var(--ink-soft); }
.topics { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.topics a { display: inline-block; padding: 6px 12px; border-radius: 16px; border: 1px solid var(--line); background: #fffaf0aa; text-decoration: none; font-size: 14px; }
.topics a:hover { border-color: #8a1a12; color: #8a1a12; }
.article-page .stage { position: fixed; inset: 0; width: 100%; height: 100svh; }
.article-wrap { position: fixed; inset: 0; z-index: 3; display: grid; place-items: center; padding: 84px 16px 40px; overflow: hidden; max-width: none; margin: 0; }
.article { width: min(860px, 100%); max-height: 100%; overflow: auto; overscroll-behavior: contain; }
.article h1 { font: clamp(26px, 3.4vh, 36px)/1.15 var(--head); margin: 6px 0 14px; color: var(--ink); text-wrap: balance; }
.article h2 { font: 22px/1.2 var(--head); margin: 18px 0 6px; }
.article p { margin: 0 0 12px; line-height: 1.65; max-width: 70ch; }
.crumbs { font-size: 13px; color: var(--ink-soft); }
.crumbs a { color: #8a1a12; }
.cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 18px 0; }
.cta .btn { text-decoration: none; }
.cta-reg { font: 18px var(--head); color: #8a1a12; }
@media (max-width: 860px) { .article-wrap { padding-top: 150px; } }
/* six equal cards: 3 x 2 on a computer, 2 x 3 on a phone */
.usp { grid-template-columns: repeat(3, 1fr); width: min(720px, 100%); }
.usp-dev { grid-column: auto; }
.hero-inner { width: min(720px, 60%); }
@media (max-width: 860px) { .usp { grid-template-columns: 1fr 1fr; } .hero-inner { width: 100%; } }

/* ---- premium ---- */
.prem-top { align-self: center; text-decoration: none; font: clamp(15px, 2vh, 19px)/1 var(--head); color: #2a1206; padding: 9px 14px; border-radius: 10px;
  background: linear-gradient(#fff0c2, #d9a441 55%, #9a6416); border: 1px solid #5a3608; box-shadow: 0 0 12px #e8c46a66; }
.prem-top:hover, .prem-top:focus-visible { filter: brightness(1.08); outline: none; box-shadow: 0 0 18px #e8c46aaa; }
#premium.win { width: min(900px, 100%); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fffaf0; cursor: pointer; font-weight: 400; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan b { font: 19px/1.2 var(--head); }
.plan .price { font: 30px/1.1 var(--head); color: #8a1a12; }
.plan small { color: var(--ink-soft); font-size: 13px; }
.plan em { position: absolute; top: -10px; right: 10px; font: 600 11px/1 var(--body); font-style: normal; background: #8a1a12; color: #fff5dc; padding: 4px 8px; border-radius: 10px; }
.plan em:empty { display: none; }
.plan:has(input:checked) { border-color: #8a1a12; box-shadow: 0 0 0 3px #e8c46a99; background: #fff6e0; }
.plan:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.plan-plus { background: linear-gradient(#1b2738, #0b111b); color: #e7eef6; border-color: #3b4a5d; }
.plan-plus small { color: #a9b8c9; } .plan-plus .price { color: #ffb35a; }
.plan-plus.soon { cursor: not-allowed; opacity: .8; }
.prem-login { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prem-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.link-btn { background: none; border: 0; padding: 0; color: #8a1a12; font: 600 14px var(--body); text-decoration: underline; cursor: pointer; }
.pay { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; margin-top: 14px; padding: 14px; border: 2px dashed var(--line); border-radius: 12px; background: #fffaf0; }
.pay[hidden] { display: none; }
.pay-qr { width: 172px; height: 172px; background: #fff; padding: 6px; border-radius: 8px; }
.pay-qr img, .pay-qr canvas { width: 160px !important; height: 160px !important; }
.pay-info p { margin: 0 0 8px; }
.pay-amount { font: 26px/1 var(--head); color: #8a1a12; }
.pay-addr { font: 600 14px/1.3 ui-monospace, Menlo, Consolas, monospace; word-break: break-all; background: #f1e3c3; padding: 3px 6px; border-radius: 6px; }
.pay-state { font-weight: 700; }
.pay-state.ok { color: var(--ok); } .pay-state.err { color: var(--err); }
.pay-note { font-size: 13px; color: var(--ink-soft); }
@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; }
  .prem-login { grid-template-columns: 1fr; }
  .pay { grid-template-columns: 1fr; justify-items: center; }
  .prem-top { order: 2; padding: 7px 10px; }
}
