/* The landing page of the game server (AomServerWeb.Plugs.Homepage; see
   docs/homepage.md), drawn with the game's own UI: its tab buttons across
   the top, the stage with its HUD, a row of the game's table for the
   server's status, the notice board in its frame, overlays with a title
   bar. The art is cut out of the original client's atlases; nine-slice
   sprites are border-images on a ::before layer, so that a button's padding
   is its own. The lettering is the game's. The page runs no script: the
   board's tabs are radio buttons, and a notice opens as a <details>. */

@font-face { font-family: "AoM"; src: url(../fonts/en.otf) format("opentype"); font-display: swap; }

:root {
  --pink: #f54399;
  --cream: #ffecc9;
  --maroon: #6c1d1d;
  --gold: #ffb52c;
  --orange: #ffa41c;
  --ink: #2a1512;
  --outline: #1a1014;
  --tabs-h: 72px;
  font-family: "AoM", ui-rounded, "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.45;
  color: #fff;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--tabs-h) + 14px); background: #5b8fbf; }
body { display: flex; flex-direction: column; margin: 0; min-height: 100vh; overflow-x: hidden; }
main { flex: 1; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul { margin: 0; padding: 0; font-weight: normal; }
ul { list-style: none; }
a { color: inherit; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -80px; z-index: 50; padding: 10px 16px; background: #fff; color: var(--maroon); border: 3px solid var(--maroon); }
.skip:focus { top: 8px; }

:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 7px #000; border-radius: 4px; }

/* White lettering with a dark edge, as on the game's HUD and buttons. */
.pill, .plate, .hp, .tab, .btn, .btn-boss, .board-ban, .cta-note, .tagline, .foot-title {
  text-shadow: -1px -1px 0 var(--outline), 1px -1px 0 var(--outline), -1px 1px 0 var(--outline), 1px 1px 0 var(--outline), 0 2px 0 var(--outline), 2px 0 0 var(--outline), -2px 0 0 var(--outline), 0 -2px 0 var(--outline);
}

/* -- the sky behind everything -------------------------------------------------- */

.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #5b8fbf; }
.sky::before { content: ""; position: absolute; inset: -2% -8%; background: url(../img/world-001.jpg) center / cover; animation: drift 70s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateX(-4%); } to { transform: translateX(4%); } }

/* -- the tab buttons ------------------------------------------------------------ */

.tabs-bar { position: sticky; top: 0; z-index: 20; background: var(--pink); padding: 5px 5px 3px; box-shadow: 0 3px 0 rgba(120, 10, 70, .45); }
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; max-width: 760px; margin: 0 auto; }
.tab { position: relative; isolation: isolate; display: flex; align-items: flex-end; justify-content: center; height: 62px; padding: 0 4px 7px; color: #fff; text-decoration: none; font-size: 19px; line-height: 1; letter-spacing: .5px; transition: transform 60ms; }
.tab::before { content: ""; position: absolute; inset: 0; z-index: -1; border: solid transparent; border-width: 25px 24px; border-image: url(../img/tab-pink.png) 17 16 17 16 fill / 25px 24px stretch; }
/* A tab's icon, as on the game's own tabs: a flat shape in a darker shade of the tab, behind
   its name, which turns white under the pointer as the game's does on the tab that is open. */
.tab::after { content: ""; position: absolute; left: 50%; top: 9px; z-index: -1; width: 30px; height: 25px; translate: -50% 0; image-rendering: pixelated; background: var(--shade); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; transition: background-color 120ms; }
.tab:hover::after, .tab:focus-visible::after { background: #fff; }
.tab-play { --icon: url(../img/tab-shape-play.png); }
.tab-status { --icon: url(../img/tab-shape-status.png); }
.tab-news { --icon: url(../img/tab-shape-news.png); }
.tab-about { --icon: url(../img/tab-shape-about.png); }
.tab-links { --icon: url(../img/tab-shape-links.png); }
.tab-blue::before { border-image-source: url(../img/tab-blue.png); }
.tab-green::before { border-image-source: url(../img/tab-green.png); }
.tab-purple::before { border-image-source: url(../img/tab-purple.png); }
.tab-orange::before { border-image-source: url(../img/tab-orange.png); }
.tab-pink { --outline: #8f1f3c; --shade: #a83d55; }
.tab-blue { --outline: #064f7e; --shade: #1672b5; }
.tab-green { --outline: #2f6410; --shade: #5fa637; }
.tab-purple { --outline: #5a1787; --shade: #9140c4; }
.tab-orange { --outline: #8a4208; --shade: #b9631f; }
.tab:hover, .btn:hover, .btn-boss:hover, .ntab:hover { filter: brightness(1.08); }
.tab:active, .btn:active, .btn-boss:active, .ntab:active { transform: scale(1.05); }

/* -- the stage ------------------------------------------------------------------ */

.stage { position: relative; display: flex; flex-direction: column; align-items: center; min-height: min(calc(100vh - var(--tabs-h)), 900px); padding: 18px 16px 0; overflow: hidden; text-align: center; }

.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; padding-left: 14px; }
.pill { position: relative; display: flex; align-items: center; min-width: 170px; height: 34px; padding: 0 16px 0 30px; border-radius: 9px; background: rgba(38, 48, 60, .62); font-size: 18px; letter-spacing: .5px; white-space: nowrap; }
.pill img { position: absolute; left: -16px; top: 50%; transform: translateY(-50%); image-rendering: pixelated; }
.pill span { margin: 0 auto; }

.hud { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 18px; width: 100%; max-width: 900px; margin-top: 16px; }
.plate { position: relative; margin-top: 16px; padding: 9px 14px 7px 10px; border-radius: 4px; background: rgba(0, 0, 0, .9); font-size: 19px; text-align: left; white-space: nowrap; }
.plate-label { position: absolute; left: 8px; top: -17px; color: #ff9bd3; font-size: 18px; text-transform: uppercase; letter-spacing: 1px; --outline: #3a0b2a; }
.plate-number { position: absolute; left: 92px; top: -22px; font-size: 27px; }
/* The server's status, as the bar of a boss' life: full while the gates are open. */
.hp { position: relative; flex: 0 1 380px; min-width: 240px; border-radius: 2px; background: #000; font-size: 19px; overflow: hidden; }
.hp::before { content: ""; position: absolute; inset: 0 18% 0 0; background: linear-gradient(#ff6a2b, #e8401a); }
.hp-down::before { inset: 0 92% 0 0; background: #8c8c8c; }
.hp a { position: relative; display: flex; justify-content: space-between; gap: 16px; padding: 5px 9px 3px; text-decoration: none; }

.logo { margin-top: 22px; width: min(585px, 92%); filter: drop-shadow(0 3px 0 rgba(255, 255, 255, .55)) drop-shadow(0 6px 10px rgba(0, 30, 70, .35)); }
.logo img { display: block; width: 100%; }
.tagline { max-width: 36em; margin-top: 12px; padding: 7px 14px 5px; border-radius: 6px; background: rgba(0, 0, 0, .6); font-size: 19px; line-height: 1.35; }

.cta { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 18px; }
.cta-note { font-size: 16px; }
.btn-boss { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; min-width: 290px; min-height: 92px; padding: 14px 40px 22px; color: #fff; font-size: 38px; line-height: 1; letter-spacing: 3px; text-transform: uppercase; text-decoration: none; transition: transform 60ms; --outline: #5a2c00; image-rendering: pixelated; }
/* The flat fill again underneath, so that no hairline shows between the slices at fractional zoom. */
.btn-boss::before { content: ""; position: absolute; inset: 0; z-index: -1; border: solid transparent; border-width: 26px 24px 30px; border-image: url(../img/btn-boss.png) 13 12 15 12 fill / 26px 24px 30px stretch; background: linear-gradient(#e98721, #e98721) center 10px / calc(100% - 20px) calc(100% - 28px) no-repeat border-box; }
.btn-leave { --outline: #5a0a1c; }
.btn-leave::before { border-image-source: url(../img/btn-leave.png); background-image: linear-gradient(#e92142, #e92142); }
@media (prefers-reduced-motion: no-preference) { .btn-boss { animation: glow 1.8s ease-in-out infinite; } .btn-boss:hover, .btn-boss:focus-visible { animation: none; } }
@keyframes glow { 0%, 100% { filter: brightness(1) drop-shadow(0 0 0 rgba(255, 240, 160, 0)); } 50% { filter: brightness(1.1) drop-shadow(0 0 12px rgba(255, 240, 160, .85)); } }

/* The battlefield, as the game shows its first world: the five pieces of the ground, the
   heroes at their places on them, the enemy in the middle. tools/build_landing_battlefield.py
   reads the places from the game's own scene. One em is one unit of the game's world; a
   narrow screen sees the middle of the field, and on a wide one the field grows to reach
   both edges, and a little past them, since the ground's art ends a hair inside the field.
   Past the widest it grows to, its ends fade out. */
.field { position: relative; flex: none; margin-top: 6px; font-size: max(min(96.77px, 100vw / 9), min(100vw / 12.9, 170px)); image-rendering: pixelated; -webkit-mask-image: linear-gradient(#000 80%, transparent 99%); mask-image: linear-gradient(#000 80%, transparent 99%); }
@media (min-width: 2194px) { .field { -webkit-mask-image: linear-gradient(#000 80%, transparent 99%), linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(#000 80%, transparent 99%), linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-composite: intersect; } }
.field > * { position: absolute; max-width: none; }
.wall { background: center / 100% 100% no-repeat; }
.wall-a { background-image: url(../img/wall-a.png); }
.wall-b1 { background-image: url(../img/wall-b1.png); }
.wall-b2 { background-image: url(../img/wall-b2.png); }
.wall-c1 { background-image: url(../img/wall-c1.png); }
.wall-c2 { background-image: url(../img/wall-c2.png); }
/* A hero stands, shifting its weight, and then strikes towards the enemy. */
.fighter { --toward-the-enemy: -1; background-repeat: no-repeat; background-size: 300% 100%; animation: fight 2s step-end infinite; }
@keyframes fight {
  0%, 44% { background-position-x: 0; translate: 0; }
  22%, 66% { background-position-x: 50%; translate: 0; }
  84% { background-position-x: 100%; translate: calc(var(--toward-the-enemy) * .14em) 0; }
}
/* The enemy floats, and flinches as the blows land; what they took rises off it. */
.enemy { animation: bob 3.2s ease-in-out infinite, struck .62s step-end infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.1em); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes struck { 0% { filter: brightness(1.7) saturate(.7); } 16% { filter: none; } }
.blow { font-size: .25em; line-height: 1; color: #fff; opacity: 0; animation: blow 1.9s linear infinite; text-shadow: -1px -1px 0 var(--outline), 1px -1px 0 var(--outline), -1px 1px 0 var(--outline), 1px 1px 0 var(--outline); }
.blow-1 { left: 23.6em; top: 3.6em; }
.blow-2 { left: 27.6em; top: 5.2em; animation-delay: -.5s; }
.blow-3 { left: 25.2em; top: 2.6em; animation-delay: -1s; }
.blow-4 { left: 22.4em; top: 6.4em; animation-delay: -1.45s; }
.blow-critical { font-size: .34em; color: #ffe24a; left: 18.4em; top: 1.9em; }
@keyframes blow { 0% { opacity: 0; transform: translateY(.6em) scale(.6); } 12% { opacity: 1; transform: translateY(0) scale(1.15); } 22% { transform: translateY(-.3em) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-2.6em); } }
.field { width: 13.10em; height: 6.95em; }
.wall-a { left: 0.024em; top: 2.611em; width: 13.053em; height: 4.691em; }
.wall-b1 { left: 8.915em; top: 2.757em; width: 4.161em; height: 2.692em; }
.wall-b2 { left: 0.018em; top: 2.715em; width: 4.568em; height: 2.733em; }
.wall-c1 { left: 0.026em; top: 1.688em; width: 4.283em; height: 2.447em; }
.wall-c2 { left: 8.916em; top: 1.700em; width: 4.161em; height: 2.407em; }
.he001 { left: 8.286em; top: 3.898em; width: 1.147em; height: 1.054em; background-image: url(../img/fight-he001.png); animation-duration: 1.70s; animation-delay: -0.00s; }
.he003 { left: 8.952em; top: 3.867em; width: 1.302em; height: 1.302em; background-image: url(../img/fight-he003.png); animation-duration: 2.16s; animation-delay: -0.37s; }
.he005 { left: 3.000em; top: 3.851em; width: 0.837em; height: 0.899em; background-image: url(../img/fight-he005.png); animation-duration: 2.62s; animation-delay: -0.74s; transform: scaleX(-1); --toward-the-enemy: 1; }
.he008 { left: 4.101em; top: 4.254em; width: 1.519em; height: 0.930em; background-image: url(../img/fight-he008.png); animation-duration: 1.93s; animation-delay: -1.11s; transform: scaleX(-1); --toward-the-enemy: 1; }
.he010 { left: 2.380em; top: 3.898em; width: 1.116em; height: 1.085em; background-image: url(../img/fight-he010.png); animation-duration: 2.39s; animation-delay: -1.48s; transform: scaleX(-1); --toward-the-enemy: 1; }
.he002 { left: 9.123em; top: 2.209em; width: 0.961em; height: 1.116em; background-image: url(../img/fight-he002.png); animation-duration: 1.70s; animation-delay: -0.15s; }
.he004 { left: 9.697em; top: 2.333em; width: 0.868em; height: 1.054em; background-image: url(../img/fight-he004.png); animation-duration: 2.16s; animation-delay: -0.06s; }
.he007 { left: 3.465em; top: 2.286em; width: 1.054em; height: 1.209em; background-image: url(../img/fight-he007.png); animation-duration: 2.62s; animation-delay: -2.59s; transform: scaleX(-1); --toward-the-enemy: 1; }
.he009 { left: 10.146em; top: 2.302em; width: 0.930em; height: 0.992em; background-image: url(../img/fight-he009.png); animation-duration: 1.93s; animation-delay: -1.03s; }
.he011 { left: 2.752em; top: 2.147em; width: 0.930em; height: 1.240em; background-image: url(../img/fight-he011.png); animation-duration: 2.39s; animation-delay: -0.94s; transform: scaleX(-1); --toward-the-enemy: 1; }
.he013 { left: 2.226em; top: 1.377em; width: 0.868em; height: 0.806em; background-image: url(../img/fight-he013.png); animation-duration: 1.70s; animation-delay: -0.30s; transform: scaleX(-1); --toward-the-enemy: 1; }
.he024 { left: 9.232em; top: 0.873em; width: 1.302em; height: 1.302em; background-image: url(../img/fight-he024.png); animation-duration: 2.16s; animation-delay: -1.91s; }
.enemy { left: 5.250em; top: 0.510em; width: 2.600em; height: 2.880em; }

/* -- what lies over the dimmed sky: the status, the notice board, the overlay ---- */

/* No line between the stage and what follows: the sky dims and blurs gradually. */
.more { position: relative; display: flex; flex-direction: column; align-items: center; gap: 44px; margin-top: -90px; padding: 150px 16px 56px; background: linear-gradient(rgba(20, 8, 24, 0), rgba(20, 8, 24, .58) 200px); }
.more::before { content: ""; position: absolute; inset: 0; z-index: -1; -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); -webkit-mask-image: linear-gradient(transparent, #000 200px); mask-image: linear-gradient(transparent, #000 200px); pointer-events: none; }

/* A row of the game's table, as a hero's: the fairy keeps watch over the server. */
.cell { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; max-width: 520px; min-height: 108px; padding: 11px 16px 11px 14px; border: 5px solid var(--pink); background: #ffdece url(../img/cell.png) center / 100% 100%; color: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.cell-icon { flex: none; width: 78px; height: 78px; object-fit: contain; image-rendering: pixelated; }
.cell-text { flex: 1; min-width: 0; }
.cell-name { color: #5a2416; font-size: 23px; line-height: 1.1; }
.cell-level { font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
.cell-note { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.cell-dim { color: #6b4a3f; }
.cell-status.is-down { background-image: url(../img/cell-half.png); background-color: #fdb2b5; }
.lamp { display: inline-block; width: 12px; height: 12px; margin-right: 2px; border-radius: 50%; background: #3fc41c; box-shadow: 0 0 0 2px #1b4d0c; }
.is-down .lamp { background: #ffb400; box-shadow: 0 0 0 2px #6b3d00; }
@media (prefers-reduced-motion: no-preference) { .is-online .lamp { animation: blink 2s ease-in-out infinite; } .is-online .cell-icon { animation: float 4.5s ease-in-out infinite; } }
@keyframes blink { 50% { opacity: .45; } }

/* The small one-colour button. */
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 9px 22px 14px; border: 0; background: none; color: #fff; font: inherit; font-size: 19px; line-height: 1.1; letter-spacing: .5px; text-decoration: none; text-align: center; cursor: pointer; transition: transform 60ms; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border: solid transparent; border-width: 16px 16px 20px; border-image: url(../img/btn-red.png) 8 8 10 8 fill / 16px 16px 20px stretch; image-rendering: pixelated; }
.btn::before { background: linear-gradient(#ff002e, #ff002e) center 8px / calc(100% - 16px) calc(100% - 22px) no-repeat border-box; }
.btn-pink::before { border-image-source: url(../img/ov-btn-yes.png); background-image: linear-gradient(#ff366a, #ff366a); }
.btn-grey::before { border-image-source: url(../img/btn-grey.png); background-image: linear-gradient(#787878, #787878); }
.btn-big { min-height: 60px; padding: 12px 30px 18px; font-size: 23px; }

/* -- the notice board ----------------------------------------------------------- */

.board { position: relative; width: 100%; max-width: 900px; }
.board-tabs { display: flex; gap: 6px; padding-left: 14px; margin-bottom: -6px; position: relative; z-index: 1; }
.ntab { display: block; width: 66px; height: 64px; background: center / contain no-repeat; cursor: pointer; transition: transform 60ms; }
/* A tab is its picture; its name is only read out. */
.ntab-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ntab-all { background-image: url(../img/ntab-all.png); }
.ntab-news { background-image: url(../img/ntab-news.png); }
.ntab-promotion { background-image: url(../img/ntab-promotion.png); }
.ntab-releasenote { background-image: url(../img/ntab-releasenote.png); }
/* The board's tabs are radio buttons (no script runs here); a tab shows its kind of notice. */
#ntab-all:checked ~ .board-tabs .ntab-all { background-image: url(../img/ntab-all-on.png); }
#ntab-news:checked ~ .board-tabs .ntab-news { background-image: url(../img/ntab-news-on.png); }
#ntab-promotion:checked ~ .board-tabs .ntab-promotion { background-image: url(../img/ntab-promotion-on.png); }
#ntab-releasenote:checked ~ .board-tabs .ntab-releasenote { background-image: url(../img/ntab-releasenote-on.png); }
.ntab-pick:focus-visible ~ .board-tabs .ntab { outline: 2px dashed rgba(255, 255, 255, .5); }
#ntab-news:checked ~ .board-frame .notice:not(.notice-news), #ntab-promotion:checked ~ .board-frame .notice:not(.notice-promotion), #ntab-releasenote:checked ~ .board-frame .notice:not(.notice-releasenote) { display: none; }
.board-ban h2 span { display: none; }
#ntab-all:checked ~ .board-frame .ban-all, #ntab-news:checked ~ .board-frame .ban-news, #ntab-promotion:checked ~ .board-frame .ban-promotion, #ntab-releasenote:checked ~ .board-frame .ban-releasenote { display: inline; }
#ntab-promotion:checked ~ .board-frame .board-ban { --outline: #7a4a00; }
#ntab-promotion:checked ~ .board-frame .board-ban::before { border-image-source: url(../img/ban-promotion.png); }
#ntab-releasenote:checked ~ .board-frame .board-ban { --outline: #6a1410; }
#ntab-releasenote:checked ~ .board-frame .board-ban::before { border-image-source: url(../img/ban-releasenote.png); }
/* Above the board the tabs are turned a quarter, so that their flat side still meets its frame. */
@media (max-width: 1099px) {
  .board-tabs { margin-bottom: -3px; }
  .ntab { rotate: 90deg; }
}
@media (min-width: 1100px) {
  .board-tabs { position: absolute; right: 100%; top: 6px; flex-direction: column; gap: 4px; padding: 0; margin: 0 -5px 0 0; }
  .ntab { width: 78px; height: 76px; }
}

.board-frame { position: relative; z-index: 2; border: 3px solid #3d2208; outline: 3px solid #da8530; outline-offset: -6px; padding: 6px; background: #3d2208; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.board-ban { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 62px; padding: 4px 16px 21px 112px; border-bottom: 5px solid #cc9922; box-shadow: inset 0 -17px 0 #6d1c1c; --outline: #1b2c6e; }
.board-ban::before { content: ""; position: absolute; inset: 0 0 17px 0; z-index: -1; border: solid transparent; border-width: 0 0 0 96px; border-image: url(../img/ban-news.png) 0 0 0 96 fill / 0 0 0 96px stretch; }
.board-ban h2 { font-size: 34px; line-height: 1; letter-spacing: 1px; }
/* The board scrolls inside its frame, as the game's does; a notice opens in place. It is
   what the hidden names inside its notices are placed by, or they would lengthen the page. */
.board-body { position: relative; max-height: min(78vh, 760px); overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #da8530 #0d1522; padding: 8px 26px 26px; background: #16314f url(../img/board-bg.png) 0 0 / 106px 240% repeat-x; }
.board-empty { padding: 90px 10px; text-align: center; font-size: 22px; }

.notice { padding: 20px 0 22px; border-bottom: 2px dashed rgba(255, 255, 255, .22); }
.notice:last-of-type { border-bottom: 0; }
.notice:target .notice-title { text-decoration: underline; text-underline-offset: 5px; }
.notice-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; }
.notice-title { color: var(--orange); font-size: 23px; line-height: 1.2; overflow-wrap: anywhere; }
.notice-new { vertical-align: -8px; }
.notice-meta { font-size: 16px; color: #dbe7f5; white-space: nowrap; }
.notice-type { display: inline-block; margin-right: 8px; padding: 2px 8px 0; border-radius: 3px; background: rgba(255, 255, 255, .16); }
.notice-banner { display: block; width: min(550px, 100%); margin: 12px 0 2px; border: 2px solid #0d1522; }
.notice-text { margin-top: 10px; padding-left: 26px; font-size: 18px; line-height: 1.5; overflow-wrap: anywhere; }
.notice-text > summary { list-style: none; cursor: pointer; }
.notice-text > summary::-webkit-details-marker { display: none; }
.notice-text[open] > summary .notice-excerpt { display: none; }
.notice-text[open] > summary { margin-bottom: 8px; text-align: right; }
.notice-text p + p, .notice-text h4 + p, .notice-text p + h4 { margin-top: 12px; }
.notice-text h4 { color: #ffe08a; font-size: 20px; }
.notice-text strong { color: #ffe08a; font-weight: normal; }
.notice-text em { font-style: normal; color: #cfe6ff; }
.notice-text a { color: #9fe0ff; }
.notice-more { white-space: nowrap; color: #ffe08a; text-decoration: underline; }

/* -- an overlay: cream panel, maroon title bar with the gold line ---------------- */

.overlay { width: 100%; max-width: 900px; border: 4px solid #3f3233; background: var(--cream); color: var(--maroon); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.overlay-bar { margin-top: 12px; padding: 6px 20px 3px 36px; background: var(--maroon); border-bottom: 4px solid var(--gold); color: #fff; }
.overlay-bar h1, .overlay-bar h2 { font-size: 27px; line-height: 1.15; letter-spacing: .5px; }
.overlay-body { padding: 22px 28px 28px; font-size: 18px; }

.about { display: grid; grid-template-columns: 113px 1fr; gap: 18px 26px; align-items: start; }
.about-text p + p { margin-top: 12px; }
.sub { grid-column: 1 / -1; display: flex; gap: 18px; align-items: center; padding: 14px 18px; border-radius: 10px; background: rgba(255, 196, 122, .55); }
.sub img { flex: none; }
.sub h3 { font-size: 22px; color: #c2185b; }
.sub a, .about-text a { color: #9a1036; }
@media (prefers-reduced-motion: no-preference) { .about-mascot, .gate-mascot { animation: float 3.6s ease-in-out infinite; } }

/* -- the foot ------------------------------------------------------------------- */

.foot { padding: 30px 16px 38px; background: #313233; text-align: center; }
.foot-title { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 24px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin: 14px 0 22px; }
.foot-note { max-width: 46em; margin: 0 auto; color: #d6d6d6; font-size: 15px; }

/* -- the age confirmation ------------------------------------------------------- */

.page-age .sky::after { content: ""; position: absolute; inset: 0; background: rgba(20, 8, 24, .6); }
.gate { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; min-height: 100vh; padding: 24px 14px; }
.overlay-gate { max-width: 620px; }
.overlay-gate .overlay-body { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.gate-logo { width: min(390px, 100%); }
.gate-mascot { width: 92px; }
.gate-badge { display: flex; align-items: center; gap: 12px; font-size: 22px; color: #c2185b; }
.gate-badge span { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; padding-top: 3px; border: 4px solid #c2185b; border-radius: 50%; font-size: 23px; }
.gate-text { font-size: 19px; }
.gate-question { font-size: 25px; line-height: 1.2; }
.gate-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; margin-top: 4px; }
.gate-small { font-size: 14px; color: #7a4a3a; }
.gate-foot { max-width: 40em; color: #f0f0f0; font-size: 14px; text-align: center; text-shadow: 0 1px 2px #000; }

/* -- narrow screens, calm screens, paper ---------------------------------------- */

@media (max-width: 560px) {
  :root { --tabs-h: 56px; }
  .tabs { gap: 3px; }
  .tab { height: 46px; padding-bottom: 5px; font-size: 14px; letter-spacing: 0; }
  .tab::after { top: 6px; width: 24px; height: 20px; }
  .tab::before { border-width: 18px 17px; border-image-width: 18px 17px; }
  .stage { padding-top: 12px; }
  .btn-boss { min-width: 250px; min-height: 84px; font-size: 32px; }
  .pills { gap: 6px 26px; padding-left: 12px; }
  .pill { min-width: 0; height: 26px; padding: 0 10px 0 20px; font-size: 14px; letter-spacing: 0; }
  .pill img { left: -12px; max-height: 24px; width: auto; }
  .hud { margin-top: 8px; gap: 8px; }
  .plate { padding: 7px 10px 5px 8px; font-size: 17px; }
  .hp { flex: 1 1 150px; min-width: 150px; font-size: 17px; }
  .logo { margin-top: 14px; }
  .tagline { margin-top: 8px; padding: 5px 10px 3px; font-size: 16px; }
  .more { gap: 32px; padding: 130px 10px 40px; }
  .board-tabs { margin-bottom: -4px; }
  .board-body { padding: 4px 14px 20px; }
  .board-ban { padding-left: 84px; }
  .board-ban::before { border-left-width: 74px; border-image-width: 0 0 0 74px; }
  .board-ban h2 { font-size: 27px; }
  .notice-text { padding-left: 0; font-size: 17px; }
  .about { grid-template-columns: 1fr; justify-items: center; }
  .about-mascot { width: 84px; }
  .overlay-body { padding: 18px 16px 20px; }
  .sub { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print { .sky, .tabs-bar, .field { display: none; } .more { background: none; } }
