/* ==========================================================================
   HOCKEY LEAGUE ARCHITECT - the website
   Same colours as the game: deep navy, gold, silver text, the blue line and the red line of the ice.
   No external file, no font to download: the headings use the font of the logo when the visitor has it
   (Windows), a close condensed font otherwise.
   ========================================================================== */

:root {
    --bg: #0c1118;
    --navy: #031128;
    --panel: #121925;
    --panel-2: #172031;
    --line: rgba(255, 255, 255, 0.1);
    --line-2: rgba(255, 255, 255, 0.18);
    --text: #e9eef5;
    --muted: #93a1b5;
    --soft: #c6d0dc;
    --accent: #c09455;
    --accent-2: #d4ad76;
    --ink: #141414;
    --ice: #dff1fb;
    --red: #d7263d;
    --blue: #2a6fdb;
    --radius: 14px;
    --ui: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --display: "Bahnschrift SemiBold Condensed", "Bahnschrift Condensed", "Bahnschrift", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background:
        radial-gradient(1200px 520px at 50% -140px, rgba(42, 111, 219, 0.22), transparent 70%),
        radial-gradient(900px 480px at 100% 110%, rgba(215, 38, 61, 0.12), transparent 70%),
        var(--bg);
    background-attachment: fixed;
    color: var(--text);
    font: 17px/1.6 var(--ui);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.center { text-align: center; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 12px; }

/* ---- the top bar ---- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(3, 17, 40, 0.84); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 600 20px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.brand img { width: 36px; height: 36px; }
.brand.brand-logo img { width: auto; height: 44px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a.link { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--soft); font: 600 15px/1 var(--ui); }
.nav a.link:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
/* the language switch: always shown, also on a phone */
.lang { display: flex; margin-left: 10px; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.lang a, .lang span { padding: 7px 13px; font: 700 13px/1 var(--ui); letter-spacing: 0.08em; text-decoration: none; color: var(--soft); }
.lang a:hover { background: rgba(255, 255, 255, 0.09); color: #fff; }
.lang .on { background: var(--accent); color: var(--ink); }

/* ---- the top of the page ---- */
.hero {
    text-align: center;
    /* the top of the page is sized by the height of the window: the title is seen without scrolling */
    padding: clamp(20px, 4vh, 56px) 0 clamp(28px, 5vh, 64px);
    background:
        linear-gradient(180deg, rgba(3, 17, 40, 0.55), rgba(12, 17, 24, 0) 92%),
        url(rink.svg) center 30% / cover no-repeat;
    border-bottom: 1px solid var(--line);
}
.hero .logo { width: min(560px, 86%, 62vh); margin: 0 auto 16px; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.5)); }
.eyebrow { margin: 0; font: 600 15px/1 var(--display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
h1 {
    margin: 12px 0 14px;
    font: 600 clamp(34px, min(6.2vw, 8.5vh), 72px)/1.02 var(--display);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: #eef2f7;
    background: linear-gradient(180deg, #f7f8fa 20%, #b9c4d2);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.lead { max-width: 700px; margin: 0 auto 22px; color: var(--soft); font-size: clamp(16px, 2vw, 19px); line-height: 1.5; }

.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 26px; border-radius: 10px; font: 700 16px/1 var(--ui); text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: var(--ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-soon { border-color: rgba(192, 148, 85, 0.7); color: var(--accent-2); background: rgba(192, 148, 85, 0.08); cursor: default; }
.btn-soon em { font-style: normal; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--accent); color: var(--ink); padding: 5px 9px; border-radius: 999px; }

/* ---- the sections ---- */
section { padding: clamp(48px, 7vw, 88px) 0; }
.band { background: linear-gradient(180deg, rgba(23, 32, 49, 0.6), rgba(18, 25, 37, 0.6)); border-block: 1px solid var(--line); }
.num { font: 600 18px/1 var(--display); letter-spacing: 0.2em; color: var(--accent); }
h2 { margin: 10px 0 16px; font: 600 clamp(30px, 4.6vw, 52px)/1.06 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }

/* the four messages */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { padding: clamp(22px, 3vw, 36px); background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35); }
.card { container-type: inline-size; }
.card h2 { font-size: min(22px, 3.3cqi); white-space: nowrap; }
.card p { margin: 0 0 14px; color: var(--soft); }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 9px; height: 9px; transform: rotate(45deg); background: var(--accent); }

/* the company page and the media page */
.hero.co { background: linear-gradient(180deg, rgba(3, 17, 40, 0.55), rgba(12, 17, 24, 0) 92%); }
.hero.co .logo { width: min(560px, 86%); height: auto; margin-bottom: 8px; }
.hero.co.slim { padding: clamp(28px, 6vh, 64px) 0 clamp(24px, 4vh, 44px); }
.hero.co.slim h1 { margin-bottom: 10px; }
.hero.co .lead { margin-bottom: 0; }
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 420px)); gap: 22px; justify-content: center; margin-top: 28px; }
.game { display: block; padding: clamp(22px, 3vw, 32px); text-decoration: none; color: inherit; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35); transition: border-color 0.15s, transform 0.15s; }
.game:hover { border-color: var(--accent); transform: translateY(-2px); }
.game img { width: 100%; max-width: 340px; margin: 0 auto 14px; }
.game h3 { margin: 0 0 8px; font: 600 24px/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.game p { margin: 0 0 14px; color: var(--soft); }
.game .more { font-weight: 700; color: var(--accent-2); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.gallery.clips { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.gallery figure { margin: 0; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.gallery img, .gallery video { width: 100%; height: auto; background: #000; }
.gallery figcaption { padding: 10px 14px; font-size: 14px; color: var(--muted); }
.empty { color: var(--muted); }

.intro { max-width: 640px; margin: 0 auto 22px; color: var(--soft); }
.narrow { max-width: 760px; margin-inline: auto; }
.story p { margin: 0 0 16px; color: var(--soft); font-size: 18px; line-height: 1.65; }
.story .sign { margin-top: 24px; color: var(--accent-2); font-weight: 600; }
.small { font-size: 15px; color: var(--muted); }
.mail { display: inline-block; margin-top: 6px; font: 600 clamp(22px, 4vw, 34px)/1.2 var(--display); letter-spacing: 0.03em; color: var(--accent-2); text-decoration: none; border-bottom: 2px solid rgba(192, 148, 85, 0.5); }
.mail:hover { color: #fff; border-color: var(--accent); }

.site-foot { padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---- smaller screens ---- */
@media (max-width: 1150px) {
    .card h2 { font-size: 22px; white-space: normal; }
}
@media (max-width: 860px) {
    .nav a.link { display: none; }
    .cards { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
    .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

/* the company page: everything on one screen (no menu links, no heading above the game, small blocks) */
body.co #games { padding: clamp(16px, 4vh, 44px) 0 clamp(14px, 3vh, 32px); }
body.co .games { margin-top: 0; }
body.co #contact { padding: clamp(14px, 3vh, 30px) 0; }
body.co #contact .intro { margin-bottom: 6px; }
body.co #contact .mail { margin-top: 0; font-size: clamp(20px, 3.4vh, 30px); }
body.co .site-foot { padding: 14px 0 18px; text-align: center; }
body.co .site-foot .wrap { justify-content: center; }
