/* UEFA EURO 2008: deep tournament blue, white, light blue and the host red (own stylesheet, site.css is not replaced).
   Same palette as the game's F1 "broadcast" theme and pre-game window (Euro 2008 chat, 1 Dec 2026). */
.theme-euro2008 {
  --bg: #04163f; --panel: #0a2358; --panel-2: #0f2d6b; --line: #1f4590;
  --text: #f4f8ff; --muted: #9fb6e0; --accent: #ffffff; --accent-2: #7fc3ff; --accent-ink: #04163f;
  --red: #e4202a; --sky: #7fc3ff; --gold: #f2c230; --win: #7fe08a;
  background: var(--bg); min-height: 100vh;
}
html:has(body.theme-euro2008) { background: #04163f; }
.theme-euro2008 footer { background: transparent; }
.theme-euro2008 h1 em, .theme-euro2008 h2 em { color: var(--sky); font-style: normal; }
.theme-euro2008 .subnav a.on { background: var(--red); color: #fff; }
.theme-euro2008 .btn.primary { background: #fff; color: var(--accent-ink); border-color: #fff; }
.theme-euro2008 .dot { background: var(--win); }

/* banner: no game art, a drawn one (stripes of the host flags' red and the trophy blue) */
.eurohero { height: clamp(200px, 26vw, 340px);
  background: radial-gradient(120% 140% at 85% 10%, #1b56c4 0%, #0b2e7a 38%, #04163f 75%),
              linear-gradient(90deg, #04163f, #0b2e7a); }
.eurohero::before { content: ""; position: absolute; inset: auto -10% -40% 35%; height: 140%;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.07) 0 26px, transparent 26px 70px);
  transform: skewX(-12deg); pointer-events: none; }
.eurohero::after { content: ""; position: absolute; top: auto; left: 0; right: 0; bottom: 0; height: 6px; inset: auto 0 0 0;
  background: linear-gradient(90deg, var(--red) 0 50%, #fff 50% 75%, var(--red) 75%); }
.eurohero .plate { width: auto; display: flex; flex-direction: column; gap: 6px; top: clamp(40px, 8vw, 90px); }
.eurologo { font: 800 clamp(40px, 7vw, 86px)/.95 var(--head); color: #fff; letter-spacing: .01em; text-transform: uppercase;
  text-shadow: 0 6px 30px rgba(0,0,0,.35); }
.eurologo b { color: var(--red); }
.eurosub { font: 700 clamp(15px, 1.8vw, 22px)/1 var(--head); color: var(--sky); text-transform: uppercase; letter-spacing: .14em; }

/* live tiles */
.eurotiles { grid-template-columns: repeat(3, 1fr); margin-bottom: 18px; }

/* download box */
.eurodl { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(90deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  border-left: 4px solid var(--red); border-radius: var(--radius); padding: 18px 20px; margin: 6px 0 26px; }
.eurodl b { display: block; font: 800 22px/1.15 var(--head); text-transform: uppercase; }
.eurodl em.svver { font-style: normal; color: var(--sky); font-size: 15px; margin-left: 6px; }
.eurodl span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }

/* game version box, F1 keys */
.theme-euro2008 .gamever { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.theme-euro2008 .gamever dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 18px; margin: 0 0 12px; }
.theme-euro2008 .gamever dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.theme-euro2008 .gamever dd { margin: 2px 0 0; font-weight: 700; }
.theme-euro2008 .gamever p { margin: 0; color: var(--muted); }
.theme-euro2008 .ctl { display: grid; gap: 10px; }
.theme-euro2008 .ctl div { display: grid; grid-template-columns: 140px 1fr; gap: 14px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.theme-euro2008 .ctl .keys { font: 800 16px/1 var(--head); text-transform: uppercase; color: var(--sky); }
.theme-euro2008 .ctl b { font-weight: 600; color: var(--text); }
.theme-euro2008 details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 8px 0; }
.theme-euro2008 summary { cursor: pointer; font-weight: 700; }
.theme-euro2008 details p { color: var(--muted); margin: 10px 0 2px; }
.theme-euro2008 section { margin: 26px 0; }
.theme-euro2008 .legal { font-size: 12px; opacity: .85; }

/* leaderboard */
.theme-euro2008 .lbtable { width: 100%; border-collapse: collapse; }
.theme-euro2008 .lbtable th { text-align: right; color: var(--muted); font-size: 12px; text-transform: uppercase; padding: 10px 12px; }
.theme-euro2008 .lbtable td { text-align: right; padding: 10px 12px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.theme-euro2008 .lbtable th:nth-child(2), .theme-euro2008 .lbtable td:nth-child(2) { text-align: left; }
.theme-euro2008 .lbtable td:nth-child(1) { color: var(--muted); }
.theme-euro2008 .lbtable td:last-child { font-weight: 800; color: #fff; }
.theme-euro2008 .lbtable a { color: inherit; text-decoration: none; }
.theme-euro2008 .lbtable a:hover { text-decoration: underline; }
.euromatch { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 12px; align-items: center; padding: 10px 14px;
  border-top: 1px solid var(--line); }
.euromatch:first-child { border-top: 0; }
.euromatch .h { text-align: right; }
.euromatch .s { font: 800 20px/1 var(--head); padding: 4px 10px; background: var(--panel-2); border-radius: 6px; }
.euromatch .w { color: var(--muted); font-size: 12px; text-align: right; }
.euroempty { color: var(--muted); padding: 14px 16px; }
@media (max-width: 720px) {
  .eurotiles { grid-template-columns: 1fr; }
  .theme-euro2008 .gamever dl { grid-template-columns: 1fr 1fr; }
  .theme-euro2008 .ctl div { grid-template-columns: 1fr; gap: 4px; }
}

/* v2: live, matches, match, player, stats */
.eurogrid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: start; }
.theme-euro2008 a.more { display: inline-block; margin-top: 8px; color: var(--sky); font-size: 13px; }
.eurolive { display: grid; gap: 10px; }
.eurolivecard { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--panel);
  border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 12px 16px; }
.eurolivecard.lobby { border-left-color: var(--sky); }
.eurolivecard b { font: 800 18px/1.2 var(--head); text-transform: uppercase; }
.eurolivecard b em { color: var(--muted); font-style: normal; margin: 0 4px; }
.eurolivecard span { color: var(--muted); font-size: 13px; }
.euroh3 { margin: 14px 0 6px; font: 800 15px/1 var(--head); text-transform: uppercase; color: var(--muted); }
.euroonline { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
.euroon { background: var(--panel-2); border-radius: 999px; padding: 5px 12px; font-size: 13px; }
.euroon.match { box-shadow: inset 0 0 0 1px var(--red); }
.euroon.searching { box-shadow: inset 0 0 0 1px var(--sky); }
.theme-euro2008 a.euromatch { color: inherit; text-decoration: none; }
.theme-euro2008 a.euromatch:hover { background: var(--panel-2); }
.euromatch i { color: var(--muted); font-style: normal; font-size: 12px; margin-left: 4px; }
.theme-euro2008 .toolbar { display: flex; gap: 10px; align-items: center; margin: 0 0 14px; }
.theme-euro2008 .toolbar input { flex: 0 1 320px; background: var(--panel); border: 1px solid var(--line); color: var(--text);
  border-radius: var(--radius); padding: 9px 12px; }
.theme-euro2008 .toolbar .count { color: var(--muted); font-size: 13px; }
.theme-euro2008 #loadmore { margin-top: 12px; }
.euroscore { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; padding: 34px 0 10px; }
.euroscore .side { font: 800 clamp(22px, 3vw, 34px)/1.1 var(--head); text-transform: uppercase; }
.euroscore .side:first-child { text-align: right; }
.euroscore .side i { display: block; font: 600 14px/1.4 var(--body, inherit); color: var(--muted); text-transform: none; font-style: normal; }
.euroscore .side a { color: inherit; text-decoration: none; }
.euroscore .sc { font: 800 clamp(42px, 6vw, 68px)/1 var(--head); background: var(--panel); border: 1px solid var(--line);
  border-bottom: 4px solid var(--red); border-radius: 10px; padding: 10px 22px; }
.euromsub { color: var(--muted); font-size: 13px; text-align: center; margin: 6px 0 0; }
.eurobars { padding: 8px 16px; }
.eurobars .bar { display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; padding: 8px 0; }
.eurobars .bar .a { text-align: left; font-weight: 800; }
.eurobars .bar .b { text-align: right; font-weight: 800; }
.eurobars .bar .k { text-align: center; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.eurobars .track { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--sky); overflow: hidden; margin-top: 6px; }
.eurobars .track i { display: block; height: 100%; background: #fff; }
.eurolist div { display: flex; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--line); }
.eurolist div:first-child { border-top: 0; }
.eurolist b { font-variant-numeric: tabular-nums; }
.theme-euro2008 .stats.six { grid-template-columns: repeat(6, 1fr); }
.euroach h2 em { color: var(--muted); font-size: .7em; margin-left: 8px; }
.achbar { height: 8px; border-radius: 4px; background: var(--panel-2); overflow: hidden; margin-bottom: 14px; }
.achbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--sky), #fff); }
.achlist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.achlist .ach { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.achlist .ach.more { display: none; }
.achlist.all .ach.more { display: grid; }
.achlist .ach img, .achlist .ach .noicon { width: 56px; height: 56px; border-radius: 6px; background: var(--panel-2); }
.achlist .ach.locked { opacity: .5; }
.achlist .ach.locked img { filter: grayscale(1); }
.achlist .ach b { display: block; }
.achlist .ach span { display: block; color: var(--muted); font-size: 13px; }
.achlist .ach small { color: var(--muted); font-size: 12px; }
@media (max-width: 900px) {
  .eurogrid, .achlist { grid-template-columns: 1fr; }
  .theme-euro2008 .stats.six { grid-template-columns: repeat(3, 1fr); }
}

/* v3: the game's own art (Steam set): banner + logo, cover in the download box */
.eurohero.art { height: auto; background: #5a0a0e; }
.eurohero.art::before { display: none; }
.eurohero.art .plate { width: min(440px, 46vw); top: 50%; transform: translateY(-50%); display: block; }
.eurohero.art .plate img { width: 100%; filter: drop-shadow(0 6px 22px rgba(0,0,0,.45)); }
.eurodl-art { width: 92px; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.4); flex: none; }
.eurodl > div { flex: 1 1 320px; }

/* v4 (2 Dec, owner picked concept A "Alpine sky"): the game's main menu background behind the page, glass panels,
   pill sub-nav, the game's waving flags (12-frame sheets, assets/euro2008/art/flags/<team>.webp) and profile pictures. */
.theme-euro2008 { --glass: rgba(255,255,255,.10); --glass-line: rgba(255,255,255,.22); --panel: var(--glass);
  --panel-2: rgba(4,22,63,.55); --line: rgba(255,255,255,.16); --muted: #bfd3f2;
  background: linear-gradient(180deg, rgba(4,22,63,0) 0, rgba(4,22,63,.4) 360px, #04163f 760px),
              url(/assets/euro2008/art/menu_bg.jpg?v=1) center top / max(100%, 1500px) auto no-repeat, #04163f; }
html:has(body.theme-euro2008) { background: #04163f; }
.theme-euro2008 header.top { background: rgba(4,22,63,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.theme-euro2008 .panel, .theme-euro2008 .stat, .theme-euro2008 details, .theme-euro2008 .gamever,
.theme-euro2008 .ctl div, .theme-euro2008 .eurodl, .theme-euro2008 .step, .theme-euro2008 .req > div,
.eurolivecard, .achlist .ach { background: var(--glass); border: 1px solid var(--glass-line); border-radius: 16px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.eurohero2 { padding: clamp(46px, 7vw, 84px) 0 6px; }
.eurohero2 .eurosub { display: block; font: 700 18px/1 var(--head); letter-spacing: .2em; text-transform: uppercase; color: #bfe0ff; }
.eurohero2 .eurobig { margin: 10px 0 0; font: 800 clamp(56px, 9vw, 104px)/.9 var(--head); text-transform: uppercase;
  color: #fff; text-shadow: 0 8px 40px rgba(0,30,90,.5); }
.eurohero2 .eurobig b { color: #ff3b45; font-weight: 800; }
.eurohero2 p { max-width: 560px; margin: 16px 0 0; font-size: 17px; color: #e6f0ff; }
.theme-euro2008 .subnav { margin: 26px 0 0; }
.theme-euro2008 .subnav .wrap { gap: 8px; align-items: center; }
.theme-euro2008 .subnav a { border-radius: 999px; padding: 10px 18px; font-size: 16px; color: #fff;
  background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.theme-euro2008 .subnav a.on { background: #e4202a; border-color: #e4202a; color: #fff; }
.theme-euro2008 .subnav .rule { display: none; }
.theme-euro2008 .stat { padding: 16px 18px; }
.theme-euro2008 .stat span { color: #bfe0ff; }
.theme-euro2008 .stat.team { display: flex; gap: 12px; align-items: center; }
.theme-euro2008 .stat.team b { font-size: 26px; text-transform: uppercase; }
/* waving flag: background-size 400% 300%, the 12 frames stepped */
.euflag { display: inline-block; flex: none; vertical-align: middle; background: no-repeat 0 0 / 400% 300%;
  animation: euwave 1.1s steps(1, end) infinite; }
.euflag.none { background: rgba(255,255,255,.12); border-radius: 50%; animation: none; transform: scale(.6); }
@keyframes euwave { 0% { background-position: 0 0 } 8.33% { background-position: 33.333% 0 } 16.67% { background-position: 66.667% 0 }
  25% { background-position: 100% 0 } 33.33% { background-position: 0 50% } 41.67% { background-position: 33.333% 50% }
  50% { background-position: 66.667% 50% } 58.33% { background-position: 100% 50% } 66.67% { background-position: 0 100% }
  75% { background-position: 33.333% 100% } 83.33% { background-position: 66.667% 100% } 91.67% { background-position: 100% 100% } }
@media (prefers-reduced-motion: reduce) { .euflag { animation: none; } }
.euav { position: relative; display: inline-grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden;
  background: #1756c4; color: #fff; font-weight: 700; border: 2px solid #fff; vertical-align: middle; }
.euav.h { background: #e4202a; }
.euav img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* result lines */
.euromatch { grid-template-columns: 1fr auto 1fr auto; gap: 18px; padding: 10px 18px; }
.euromatch .side { display: flex; align-items: center; gap: 12px; min-width: 0; }
.euromatch .side.h { justify-content: flex-end; text-align: right; }
.euromatch .side b { font-size: 17px; }
.euromatch .side i { display: block; margin: 0; color: var(--muted); font-size: 13px; }
.euromatch .s { font-size: 30px; background: #04163f; border-radius: 10px; padding: 6px 14px; white-space: nowrap; }
/* one match */
.eumatch { border-radius: 22px; overflow: hidden; margin-top: 30px; }
.eumatch .eub { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 28px 36px;
  background: linear-gradient(90deg, rgba(228,32,42,.28), rgba(4,22,63,.2) 45%, rgba(4,22,63,.2) 55%, rgba(23,86,196,.35)); }
.eumatch .eutm { display: flex; align-items: center; gap: 18px; min-width: 0; }
.eumatch .eutm.r { justify-content: flex-end; text-align: right; }
.eumatch .euwho { display: flex; align-items: center; gap: 10px; }
.eumatch .eutm.r .who { justify-content: flex-end; }
.eumatch .euwho a { font-size: 22px; font-weight: 700; color: #fff; text-decoration: none; }
.eumatch .eutn { color: var(--muted); margin-top: 4px; }
.eumatch .eusc { text-align: center; }
.eumatch .eusc b { display: block; font: 800 clamp(54px, 7vw, 84px)/1 var(--head); letter-spacing: .04em; white-space: nowrap; }
.eumatch .eusc span { color: var(--muted); font-size: 13px; }
.eumatch .eud { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; padding: 28px 36px 34px; }
.eumatch h3 { margin: 0 0 14px; font: 800 20px/1 var(--head); text-transform: uppercase; letter-spacing: .06em; color: #bfe0ff; }
.eubar { margin-bottom: 14px; }
.eubar .l { display: flex; justify-content: space-between; font-weight: 700; }
.eubar .l span { color: var(--muted); font-weight: 600; font-size: 13px; }
.eubar .t { display: flex; height: 8px; border-radius: 4px; overflow: hidden; margin-top: 6px; background: rgba(255,255,255,.12); }
.eubar .t i { background: #e4202a; } .eubar .t i + i { background: #7fc3ff; }
.eupitch { width: 100%; height: auto; border-radius: 14px; display: block; }
.eumatch .note { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.eumatch .left { color: #ffb4b8; }
.eulb td .p { display: inline-flex; align-items: center; gap: 10px; }
.eurolist div > span { display: inline-flex; align-items: center; gap: 10px; }
.euroon { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; background: var(--glass); }
@media (max-width: 860px) {
  .eumatch .eub { grid-template-columns: 1fr; text-align: center; padding: 22px 18px; }
  .eumatch .eutm, .eumatch .eutm.r { justify-content: center; }
  .eumatch .eud { grid-template-columns: 1fr; padding: 20px 18px; }
  .euromatch { grid-template-columns: 1fr auto 1fr; }
  .euromatch .w { grid-column: 1 / -1; text-align: center; }
}

/* v5 (2 Dec): the game's logo in the header, Battle of the Nations tab */
.eurologo2 { display: block; width: clamp(240px, 34vw, 460px); height: auto; filter: drop-shadow(0 8px 30px rgba(0,30,90,.55)); }
a.stat.team { color: inherit; text-decoration: none; }
a.stat.team:hover { border-color: #fff; }
.euflag.cc { background-size: cover; background-position: center; animation: none; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.euviews { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 6px; }
.euviews .btn { border-radius: 999px; }
.euviews .btn.primary { background: #e4202a; border-color: #e4202a; color: #fff; }
.euhint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.eupodium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 16px; align-items: end; margin: 22px 0 6px; }
.eupodium:empty { display: none; }
.eupodium .pod { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 18px 12px 16px;
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: 18px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.eupodium .pod b { font: 800 24px/1.05 var(--head); text-transform: uppercase; }
.eupodium .pod .rk { font: 800 18px/1 var(--head); color: #bfe0ff; }
.eupodium .pod span { color: #e6f0ff; font-size: 14px; }
.eupodium .pod small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.eupodium .p1 { order: 2; background: rgba(4,22,63,.75); border-color: #f2c230; padding-top: 26px; }
.eupodium .p1 b { font-size: 34px; }
.eupodium .p1 .rk { color: #f2c230; }
.eupodium .p2 { order: 1; } .eupodium .p3 { order: 3; }
.eunt td .p { display: inline-flex; align-items: center; gap: 10px; }
.eunt th { white-space: nowrap; }
.eunt small.prov { color: var(--muted); font-size: 12px; margin-left: 4px; }
@media (max-width: 720px) { .eupodium { grid-template-columns: 1fr; } .eupodium .pod { order: 0; } }
.theme-euro2008 .stat.team > div { min-width: 0; }
.theme-euro2008 .stat.team { padding-left: 12px; gap: 10px; }
.theme-euro2008 .stat.team b { font-size: clamp(16px, 1.45vw, 21px); line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-euro2008 .lbtable td .p { display: inline-flex; align-items: center; gap: 10px; }
.eurohero2 .eurologo2 + p { margin-top: 18px; }

/* v6 (2 Dec): How to play like the MK9 page: PC / Steam Deck tabs, the "In the game" list */
.eutabs { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 14px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.eutabs button { appearance: none; border: 0; cursor: pointer; padding: 10px 24px; border-radius: 999px; background: transparent;
  color: #bfd3f2; font: 700 16px/1 var(--head); letter-spacing: .06em; text-transform: uppercase; }
.eutabs button:hover { color: #fff; }
.eutabs button.on { background: #e4202a; color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.eutabs button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.eupane-h { margin: 0 0 4px; font: 800 22px/1.2 var(--head); text-transform: uppercase; letter-spacing: .03em; color: #fff; }
.theme-euro2008 .ctl.eufeat { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.theme-euro2008 .ctl.eufeat div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; }
.theme-euro2008 .ctl.eufeat .keys { min-width: 0; text-align: left; padding: 4px 10px; border-radius: 6px; }
.theme-euro2008 .ctl.eufeat b { font-weight: 500; line-height: 1.5; }
.theme-euro2008 .ctl .keys { background: #e4202a; color: #fff; }
.theme-euro2008 .step::before { color: #ff3b45; }
.theme-euro2008 .step a { color: #bfe0ff; }
.theme-euro2008 .callout { background: var(--glass); border: 1px solid var(--glass-line); border-radius: 14px; }
