/* The game's look for the home page and the news article page, as game-ui.css gives the Top Up page: the CN
   client's own UI pieces (img/ui, 9-sliced with border-image), the vector frame (img/ui/panel.svg), its palette and
   a display serif for titles. Loaded after style.css. */
:root {
  --g-night: #0c0b1d;
  --g-panel: #221f47;
  --g-panel2: #2b2756;
  --g-tile: #1b1940;
  --g-line: #5d55a0;
  --g-line2: #8a81c9;
  --g-ink: #ece8ff;
  --g-dim: #aaa3d8;
  --g-gold: #f2d58a;
  --g-gold2: #e3b65a;
  --g-brown: #5a3a10;
  --display: "Cinzel", var(--serif);
  --title-gold: linear-gradient(180deg, #ddbd78, #bb9c5d);  /* section titles: top to bottom */
  --night: var(--g-night);
  --gold: var(--g-gold);
  --ink: var(--g-ink);
  --dim: var(--g-dim);
  --panel: var(--g-panel);
  --panel2: var(--g-panel2);
  --line: rgb(93 85 160 / .55);
}

body {
  background:
    radial-gradient(1200px 700px at 50% 1500px, rgb(80 70 170 / .28), transparent 70%),
    linear-gradient(rgb(12 11 29 / .9), rgb(12 11 29 / .96)),
    url(img/ui/crystal.png) center top / 900px auto repeat,
    var(--g-night);
}
.bar { background: rgb(12 11 29 / .86); border-bottom: 1px solid rgb(138 129 201 / .25); }
.bar nav a { font-family: var(--display); letter-spacing: .04em; }
.bar nav a.nav-topup { color: var(--g-gold); }

/* --- the banner's buttons: the game's notched buttons, gold for the main one ------------------------------ */
.btn {
  min-height: 50px; padding: 0 30px; border-radius: 0; backdrop-filter: none; background: none;
  border: 0 solid transparent; border-image: url(img/ui/btn_violet.png) 0 30 fill / 0 24px stretch;
  color: var(--g-ink); font-family: var(--display); font-weight: 700; letter-spacing: .04em;
  filter: drop-shadow(0 3px 6px rgb(0 0 0 / .5));
}
.btn:hover { filter: drop-shadow(0 3px 6px rgb(0 0 0 / .5)) brightness(1.15); }
.btn.primary {
  border-image: url(img/ui/btn_gold.png) 0 34 fill / 0 30px stretch; background: none;
  color: var(--g-brown); text-shadow: 0 1px 0 rgb(255 240 200 / .6);
}

/* --- section titles: gold display serif between the game's fading rules, a diamond at each inner end ----- */
.title { font-family: var(--display); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--g-gold);
  text-shadow: 0 2px 10px rgb(0 0 0 / .6); }
.title::before, .title::after { border-image: linear-gradient(90deg, transparent, var(--g-line2) 60%, var(--g-gold)) 1; }
.title { text-shadow: none; }  /* the shadow is the span's filter: a text-shadow would paint over the gradient */
.title span { position: relative; padding: 0 16px; background: var(--title-gold); -webkit-background-clip: text;
  background-clip: text; color: transparent; filter: drop-shadow(0 2px 6px rgb(0 0 0 / .6)); }
.title span::before, .title span::after {
  content: ""; position: absolute; top: 50%; width: 7px; height: 7px; background: var(--title-gold); transform: translateY(-50%) rotate(45deg);
}
.title span::before { left: -2px; }
.title span::after { right: -2px; }

/* The banner fades to the night; this carries that night a little further, so there's no seam where the page's
   crystal art begins. */
.download { background: linear-gradient(var(--g-night), rgb(12 11 29 / 0) 180px); }

/* --- Download ------------------------------------------------------------------------------------------- */
.dl-head { font-family: var(--display); font-weight: 700; letter-spacing: .06em; color: var(--g-gold); }
.dl-title { background: var(--title-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 6px rgb(0 0 0 / .6)); }
.dl-head:hover .dl-title, .dl-head:focus-visible .dl-title { color: transparent; background: linear-gradient(180deg, #f3dca0, #d4b673);
  -webkit-background-clip: text; background-clip: text; }
.dl-option { border-radius: 4px; }
.dl-option:hover, .dl-option:focus-visible { background: rgb(138 129 201 / .12); }
.dl-icon { border-radius: 6px; background: linear-gradient(#ffe7a3, #e3b65a); color: var(--g-brown); }
.dl-windows h4 { font-family: var(--display); color: var(--g-gold); }

/* --- News: the slider in a gold rim, the list in the game's frame with notched tabs ------------------------ */
/* No highlight slider beside the list any more (removed 2026-12-02): the list on its own, centred. */
.news-grid { grid-template-columns: minmax(0, 1fr); max-width: 900px; margin: 0 auto; }
.slides { border-radius: 4px; border: 1px solid rgb(227 182 90 / .6); box-shadow: 0 8px 24px rgb(0 0 0 / .5), inset 0 0 0 1px rgb(0 0 0 / .5); }
.dots button::before { width: 9px; height: 9px; border-radius: 0; transform: rotate(45deg); background: rgb(236 232 255 / .35); }
.dots button[aria-current="true"]::before { background: var(--g-gold); }
.slide-caption { font-family: var(--display); color: var(--g-gold); background: linear-gradient(transparent, rgb(12 11 29 / .88)); }
.news-box {
  background: none; border: 0 solid transparent; border-radius: 0; padding: 16px 22px 18px;
  border-image: url(img/ui/panel.svg?v=3) 40 fill / 40px stretch; filter: drop-shadow(0 8px 20px rgb(0 0 0 / .5));
}
.tabs { flex-wrap: wrap; justify-content: center; gap: 6px 3px; border-bottom: 1px solid rgb(138 129 201 / .3);
  padding-bottom: 8px; margin-bottom: 6px; }  /* a second centred row where the box is narrow */
/* The game's tab (img/ui/tab.png, tab_on.png: 186 x 56, its pointed ends 32 wide). The ends are drawn at the image's
   own proportions (32/56 of the button's height --h), so the points and the sparkles keep their shape; only the
   plain middle stretches with the label. */
.tabs button {
  --h: 38px; --end: calc(var(--h) * 32 / 56);
  flex: none; height: var(--h); min-height: 0; padding: 0 calc(var(--end) + 2px); border: 0 solid transparent; margin: 0;
  border-image: url(img/ui/tab.png) 0 32 fill / 0 var(--end) stretch; line-height: 1;
  color: var(--g-dim); font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .03em;
}
.tabs button:hover { color: var(--g-ink); }
.tabs button[aria-selected="true"] {
  border-image-source: url(img/ui/tab_on.png); color: var(--g-brown); text-shadow: 0 1px 0 rgb(255 240 200 / .6);
}
#news-list li { border-bottom: 1px solid rgb(93 85 160 / .35); }
#news-list a:hover, #news-list a:focus-visible { color: var(--g-gold); }
.tag { border-radius: 2px; background: rgb(227 182 90 / .16); color: var(--g-gold); border: 1px solid rgb(227 182 90 / .4); }
.tag.fix { background: rgb(120 140 255 / .14); color: #b9c4ff; border-color: rgb(120 140 255 / .4); }
.tag.event { background: rgb(255 120 150 / .14); color: #ffb3c4; border-color: rgb(255 120 150 / .4); }
.tag.notice { background: rgb(170 164 220 / .14); color: var(--g-ink); border-color: rgb(170 164 220 / .4); }

/* --- Media: gold-ringed round arrows and diamond dots, as the game's carousels --------------------------- */
/* Each picture's own shape, so its gold rim and shadow hug it: img/media/pic<n>.jpg are 986 x 583, the phone ones
   (pic<n>mobile.jpg) 484 x 836. Before, the item was a box of another shape and the picture sat letterboxed inside
   it (object-fit: contain), with the rim round the box. The carousel is a size container: an item is as big as fits
   in it at that ratio, centred top to bottom. (main.js moves items by % of their own width, so that still works.) */
.flow { container-type: size; }
.flow-item { --ratio: 1.6913; --w: min(74cqw, 760px, calc(100cqh * var(--ratio)));
  width: var(--w); height: calc(var(--w) / var(--ratio)); top: 0; bottom: 0; margin: auto 0; }
@media (max-width: 760px) { .flow-item { --ratio: .5789; --w: min(72cqw, calc(100cqh * var(--ratio))); } }
.flow-item img { border-radius: 4px; object-fit: cover; }
.flow-item.center img { box-shadow: 0 0 0 1px rgb(227 182 90 / .6), 0 10px 30px rgb(0 0 0 / .55); }
/* The carousel's arrows: the gold chevrons img/ui/ArrowL.png / ArrowR.png (51 x 58), no round button behind them. */
.flow-arrow {
  width: 51px; height: 58px; margin-top: -29px; border: 0; border-radius: 0; backdrop-filter: none; box-shadow: none;
  background: url(img/ui/ArrowL.png?v=1) center / contain no-repeat;
  filter: drop-shadow(0 2px 6px rgb(0 0 0 / .6)); transition: transform .15s ease, filter .15s ease;
}
.flow-arrow.next { background-image: url(img/ui/ArrowR.png?v=1); }
.flow-arrow::before { content: none; }
.flow-arrow.prev:hover, .flow-arrow.prev:focus-visible { transform: translateX(-3px); }
.flow-arrow.next:hover, .flow-arrow.next:focus-visible { transform: translateX(3px); }
.flow-arrow:hover, .flow-arrow:focus-visible { filter: drop-shadow(0 2px 6px rgb(0 0 0 / .6)) drop-shadow(0 0 10px rgb(255 214 120 / .55)) brightness(1.15); }
.flow-arrow:focus-visible { outline: 2px solid var(--g-gold); outline-offset: 4px; }
@media (max-width: 760px) { .flow-arrow { width: 40px; height: 46px; margin-top: -23px; } }
@media (prefers-reduced-motion: reduce) { .flow-arrow { transition: none; } }
.flow-dots button::before { width: 10px; height: 10px; border-radius: 0; transform: rotate(45deg); background: rgb(236 232 255 / .3); }
.flow-dots button[aria-current="true"]::before { background: var(--g-gold); }

/* --- the desktop side rail ------------------------------------------------------------------------------ */
/* The side rail in the game's frame (img/ui/panel.svg, as the News box), its corners drawn smaller for a narrow box.
   No backdrop blur: it would show as a square haze outside the frame's cut corners. */
.rail {
  background: none; border: 0 solid transparent; border-radius: 0; padding: 16px 12px; gap: 2px; backdrop-filter: none;
  border-image: url(img/ui/panel.svg?v=3) 40 fill / 26px stretch; filter: drop-shadow(0 8px 20px rgb(0 0 0 / .55));
}
.rail a { position: relative; padding: 7px 14px 7px 22px; font-family: var(--display); font-weight: 700; letter-spacing: .03em;
  border-radius: 2px; }
.rail a::before { content: ""; position: absolute; left: 9px; top: 50%; width: 5px; height: 5px; background: var(--g-line2);
  transform: translateY(-50%) rotate(45deg); opacity: .55; transition: background .15s, opacity .15s; }
.rail a:hover, .rail a:focus-visible { color: var(--g-gold); background: linear-gradient(90deg, rgb(227 182 90 / .16), transparent); }
.rail a:hover::before, .rail a:focus-visible::before { background: var(--g-gold); opacity: 1; }

footer { border-top: 1px solid rgb(138 129 201 / .25); }

/* --- a news article (news.html): in the game's frame ------------------------------------------------------- */
.article-page .article {
  margin-top: 96px; padding: 30px clamp(18px, 4vw, 40px) 34px; border: 0 solid transparent;
  border-image: url(img/ui/panel.svg?v=3) 40 fill / 40px stretch; filter: drop-shadow(0 10px 24px rgb(0 0 0 / .55));
}
.article-page .article-head h1, .article-page .article-missing h1 { font-family: var(--display); font-weight: 700; color: var(--g-gold); }
.article-page .article-body h2, .article-page .article-body h3, .article-page .article-body h4 { font-family: var(--display); color: var(--g-gold); }
.article-page .article-picture { border-radius: 4px; border-color: rgb(227 182 90 / .5); }

/* Phones: the display serif runs wider than the old nav font, so it tightens up to keep the bar inside the screen. */
@media (max-width: 520px) {
  .bar nav { gap: 14px; }
  .bar nav a { font-size: 13px; letter-spacing: 0; }
  /* the news tabs: a little smaller, and on two centred rows when they don't fit on one */
  .news-box { padding: 14px 16px 16px; }
  .tabs button { --h: 32px; font-size: 12px; letter-spacing: .02em; }
}

/* --- Communities: the game's round social badges (img/ui/social.png: Discord, Facebook, Instagram across, the
   hover look in the second row), each with its name under it ---------------------------------------------- */
.communities { max-width: 1120px; margin: 0 auto; padding: clamp(44px, 7vw, 84px) var(--gutter) 0; }
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(20px, 6vw, 56px); }
.social-link { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none;
  color: var(--g-dim); font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .05em; }
.social-icon { display: block; width: clamp(84px, 22vw, 118px); aspect-ratio: 178 / 177;
  background: url(img/ui/social.png?v=1) 0 0 / 300% 200% no-repeat;
  filter: drop-shadow(0 6px 14px rgb(0 0 0 / .5)); transition: transform .15s ease, filter .15s ease; }
.social-link.facebook .social-icon { background-position-x: 50%; }
.social-link.instagram .social-icon { background-position-x: 100%; }
.social-link:hover, .social-link:focus-visible { color: var(--g-gold); }
.social-link:hover .social-icon, .social-link:focus-visible .social-icon {
  background-position-y: 100%; transform: translateY(-3px);
  filter: drop-shadow(0 8px 18px rgb(0 0 0 / .55)) drop-shadow(0 0 12px rgb(160 140 255 / .35)); }
.social-link:focus-visible { outline: none; }
.social-link:focus-visible .social-name { text-decoration: underline; text-underline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .social-icon { transition: none; } }

/* --- Terms of Service and Privacy Policy (terms.html, privacy.html): the article frame, a contents box, and room
   for reading ----------------------------------------------------------------------------------------------- */
.legal-page .article-meta { font-family: var(--display); letter-spacing: .04em; color: var(--g-dim); }
.legal-page .article-summary { color: var(--g-ink); }
.legal-toc { margin: 22px 0 6px; padding: 14px 18px; border: 1px solid rgb(227 182 90 / .35); border-radius: 4px;
  background: rgb(12 11 29 / .35); }
.legal-toc ol { margin: 0; padding: 0; list-style: none; columns: 2 220px; column-gap: 28px; }
.legal-toc li { break-inside: avoid; padding: 3px 0; }
.legal-toc a { color: var(--g-dim); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.legal-toc a:hover, .legal-toc a:focus-visible { color: var(--g-gold); }
.legal-page .article-body section { scroll-margin-top: 90px; }
.legal-page .article-body h2 { font-size: clamp(21px, 3vw, 25px); margin-top: 30px; }
.legal-page .article-body li { margin-bottom: 6px; }
.legal-page .article-body a { color: var(--g-gold); }
