/* The original screen.css is deliberately retained unmodified. These rules
   add responsive layout, accessible controls and the restored account flows. */
:root { color-scheme: light; }
html { scroll-behavior: smooth; }
body { min-width: 280px; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-color: #183e58; }
.skip-link { position: absolute; z-index: 100; left: 12px; top: -100px; padding: 8px 12px; background: #fff; color: #000; }
.skip-link:focus { top: 8px; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
#content:focus { outline:none; }
/* Exactly 160 + 16 + 448 + 16 + 128 = the original 768px desktop. */
div#main { display:grid; grid-template-columns:160px 448px 128px; column-gap:16px; align-items:start; }
div#content { grid-column:2; grid-row:1; min-width:0; margin:0; }
div#related { grid-column:1; grid-row:1; position:static; margin-top:0; }
div#tools { grid-column:3; grid-row:1; position:static; margin-top:0; }
div#footer { grid-column:2; grid-row:2; margin:0; padding:4px 0 12px; }
#main > #content:after, #main:after { content:none; }
#footer footer { display:flex; gap:8px; justify-content:space-between; }
p#nav-footer { float:none; width:auto; }
p#copyright { float:none; white-space:nowrap; }
div#content .section .plain-heading, div.section .heading .plain-heading { height:auto; min-height:14px; padding:0 8px; text-indent:0; background:none; font-size:100%; line-height:14px; }
div#content .section .heading h2.plain-heading { padding-top:3px; padding-bottom:4px; min-height:16px; font-size:110%; }
/* Keep historical sprites while giving new pages ordinary readable headings. */
div#competitions-home .heading h3 { background-image:url("../legacy/default/images/nl/sh-games.6b0e4cbd784f.gif"); background-position:8px 4px; }
html[lang="en"] div#competitions-home .heading h3 { background-image:url("../legacy/default/images/en/sh-games.6b0e4cbd784f.gif"); }
html[lang="en"] div#login h3, html[lang="en"] div#registration h3, html[lang="en"] div#page-text-help .heading h2, html[lang="en"] div#page-text-terms .heading h2, html[lang="en"] div#page-text-privacy .heading h2, html[lang="en"] div#page-searchplayer-results .heading h3 { text-indent:0; background:none; padding:0 8px; }
html[lang="en"] div#page-text-help .heading h2, html[lang="en"] div#page-text-terms .heading h2, html[lang="en"] div#page-text-privacy .heading h2 { line-height:23px; }
div#competitions-home blockquote { background-image:url("../legacy/default/images/nl/home-playgames.fef43830119f.gif"); background-position:100% 4px; }
html[lang="en"] div#competitions-home blockquote { background-image:url("../legacy/default/images/en/playandwin.81a489e7a523.gif"); }
#competitions-home img, #page-games .image img { object-fit:cover; }
div#content div#competitions-home .revival-caption { clear:both; margin:0 16px 12px; font-size:83%; line-height:140%; }
div#introduction .heading { overflow:hidden; }
span#payoff { animation:payoff-scroll 34s linear infinite; }
@keyframes payoff-scroll { to { transform:translateX(-495px); } }
.playgames-animation { animation:playgames-bob 4s ease-in-out infinite; transform-origin:center; }
@keyframes playgames-bob { 0%,75%,100% { transform:translateY(0); } 82% { transform:translateY(-2px); } 90% { transform:translateY(1px); } }
#free-games .content ul { padding-bottom:2px; }
#related .new-players a { overflow-wrap:anywhere; }
.archive-note { color:#aad3ec; text-align:center; padding:8px 4px; }
.archive-note img { display:block; margin:0 auto 8px; image-rendering:pixelated; }
.archive-note p { line-height:140%; }
#my-arcazoid .content { overflow:hidden; }
div#my-arcazoid form { margin:8px; }
#login input { box-sizing:border-box; max-width:100%; }
#my-arcazoid #forgot-login { clear:both; padding-top:8px; }
#my-arcazoid button { float:none; padding:0 5px; }
#my-arcazoid #registration .content { position:relative; min-height:170px; }
#my-arcazoid #registration blockquote { margin-bottom:12px; }
#my-arcazoid .signup-portrait { position:absolute; right:15px; top:0; margin:0; padding:0; width:25px; height:60px; }
div#registration .signup-portrait .avatar { position:relative; left:0; top:0; margin:0; }
#my-arcazoid #registration .claim-link { margin-top:16px; }
#my-arcazoid #player .content { position:relative; }
#my-arcazoid #player .avatar { position:relative; top:auto; left:auto; margin-left:8px; }
#my-arcazoid #player .signed-in { overflow-wrap:anywhere; }
div#page-games .game { display:flow-root; }
div#page-games .game-intro { margin-top:8px; }
div#page-games .game-intro p { margin:8px 0; }
#page-games .upcoming-label { font-size:83%; line-height:130%; }
.game-preview { display:flex; gap:16px; align-items:flex-start; }
div.section div.content .game-preview > img { margin:0; flex:0 0 125px; object-fit:cover; border:1px solid #6288a1; }
div.section div.content .game-preview > div { margin:0; flex:1; min-width:0; }
div.section div.content .game-preview h3, div.section div.content .game-preview p { margin:0 0 8px; }
div.section div.content .rich-text { margin:8px; overflow-wrap:anywhere; }
div.section div.content .rich-text p, div.section div.content .rich-text h2, div.section div.content .rich-text h3 { margin:8px 0; }
div.section div.content .rich-text ul, div.section div.content .rich-text ol { margin:8px 0 8px 20px !important; }
.rich-text img { max-width:100%; height:auto; vertical-align:middle; }
.rich-text table { width:100%; }
div.section div.content .history-label { font-size:83%; font-weight:bold; text-transform:uppercase; letter-spacing:.03em; }
div.section div.content .score-note { font-size:83%; line-height:140%; }
.score-table th, .score-table td, .competition-table th, .competition-table td, .player-table th, .player-table td { padding-top:3px; padding-bottom:3px; }
.score-table .numbers { font-variant-numeric:tabular-nums; white-space:nowrap; }
.score-table .name, .player-table .name { overflow-wrap:anywhere; }
.score-table a, .player-table a, .competition-table a { text-decoration:none; }
.score-table a:hover, .player-table a:hover, .competition-table a:hover { text-decoration:underline; }
.competition-table td { font-size:90%; }
.competition-table td:last-child { white-space:nowrap; }
.avatar-head-crop { display:inline-block; position:relative; width:25px; height:25px; margin:-5px 6px -5px 0 !important; overflow:hidden; vertical-align:middle; }
.avatar-head-crop .avatar { margin:0 !important; }
div.avatar div.hair { background-position:calc(var(--hair,0) * -25px) 0; }
div.avatar div.face { background-position:calc(var(--face,0) * -25px) 0; }
div.avatar div.trunk { background-position:calc(var(--trunk,0) * -25px) 0; }
div.avatar div.legs { background-position:calc(var(--legs,0) * -25px) 0; }
div.avatar div.feet { background-position:calc(var(--feet,0) * -25px) 0; }
#player-profile .content { min-height:100px; }
#player-profile .content > .avatar { top:52px; }
#player-profile dl.content { min-height:60px; }
#player-profile .profile-claim { clear:both; padding-top:12px; }
#player-profile dl.content dd { width:calc(100% - 128px); overflow-wrap:anywhere; }
.competition-info { display:grid; grid-template-columns:64px 1fr; gap:4px 8px; }
.competition-info dt { font-weight:bold; }
.pagination { padding:12px 8px; text-align:center; }
.notice-stack { margin:16px 0; }
.notice { border:1px solid #fff; padding:8px; background:#9bcd6a; }
.notice.error { background:#f0b093; }
/* Account templates use the same original section and inset form treatment. */
#content input, #content select, #content textarea { box-sizing:border-box; max-width:100%; }
#content input, #content select { min-height:22px; }
#content textarea { font:inherit; border:1px solid #8dabbf; padding:3px; }
#content button { padding:2px 8px; min-height:24px; }
#content form .helptext, #content form .help-text { display:block; clear:both; padding:4px 0; font-size:83%; line-height:140%; }
#content form .errorlist { margin:0 0 8px 8px; list-style:none; color:#6e1b0e; font-weight:bold; }
#content form .errorlist li { margin:4px 0; }
#content form .form-actions { padding-top:8px; }
#content form p { clear:both; }
#content form p label { margin-right:8px; }
#content .account-notice { padding:8px; background:#9bcd6a; border:1px solid #6c8f4a; }
#content form[data-avatar-builder] [data-avatar-preview]:not(.avatar) { display:flex; align-items:center; justify-content:center; width:70px; height:88px; margin:8px; padding:0; background:#90c5e6; border:1px solid #fff; }
#content form[data-avatar-builder] [data-avatar-preview] .avatar, #content form[data-avatar-builder] [data-avatar-preview] .avatar div { margin:0; padding:0; clear:none; }
#content form[data-avatar-builder] .avatar-controls { clear:none; }
#content form[data-avatar-builder] .avatar-stepper { display:inline-flex; align-items:center; gap:4px; margin:0; padding:0; clear:none; }
#content form[data-avatar-builder] .avatar-stepper select { width:125px; }
#content form[data-avatar-builder] .avatar-stepper button { float:none; margin:0; min-width:24px; height:24px; padding:0; }
/* Mobile reflows the same imagery and panels, without shrinking the desktop. */
@media (max-width:799px) {
  body { font-size:87.5%; line-height:140%; }
  div#header { height:136px; }
  div#header div.back { height:96px; }
  div#header div.fore { height:136px; background-position:left top; }
  div#header h1 { top:21px; left:22px; margin-left:0; }
  div#language { top:60px; left:auto; right:12px; margin-left:0; }
  div#language a { width:24px; height:24px; margin-right:4px; background-position:center; background-repeat:no-repeat; }
  div#nav-main { left:0; right:0; top:96px; margin:0; height:40px; background:none; background-color:#aad3ec; border-top:1px solid #d2e7f5; border-bottom:1px solid #6389a1; }
  div#nav-main ul { display:flex; justify-content:space-around; align-items:stretch; gap:0; width:auto; height:auto; margin:0; }
  div#nav-main li { flex:1; text-align:center; min-width:0; }
  div#nav-main li a { display:flex; position:static; align-items:center; justify-content:center; width:auto; height:38px; padding:0 3px; text-indent:0; background:none; font-size:10px; font-weight:bold; text-decoration:none; text-transform:uppercase; }
  div#nav-main li a:hover { background:#90c5e6; }
  div#main { width:auto; margin:0 12px; display:flex; flex-direction:column; gap:0; }
  div#content { width:100%; order:0; margin:0; }
  div#related { width:100%; margin-top:0; font-size:90%; order:1; }
  div#tools { width:100%; margin-top:0; font-size:90%; order:2; }
  div#related aside { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 12px; }
  div#related .section { margin-top:0; }
  div#related aside .section:first-child:last-child { grid-column:1/-1; }
  div#footer { width:100%; order:3; top:0; margin:0; padding:0 0 20px; font-size:75%; }
  div#content .section { margin:16px 0; }
  div#content .section:first-child { margin-top:16px; }
  div#introduction div.content { padding:0 12px 0 48px; }
  div#competitions-home div.content ul { display:grid; grid-template-columns:repeat(3,125px); justify-content:space-evenly; gap:16px 8px; margin:0 8px 16px; }
  div#competitions-home li { margin:0; width:125px; float:none; }
  div#competitions-home span { font-size:12px; }
  div#content div#competitions-home .revival-caption { margin-left:12px; margin-right:12px; }
  div#my-arcazoid { margin-top:0; }
  div#my-arcazoid > #login, div#my-arcazoid > #registration { float:left; width:50%; }
  div#my-arcazoid:after { clear:both; content:""; display:block; }
  #my-arcazoid #login .content, #my-arcazoid #registration .content { min-height:210px; box-sizing:border-box; }
  #my-arcazoid #registration .content { padding-right:42px; }
  #my-arcazoid #registration .claim-link { margin-top:12px; }
  div#my-arcazoid input { width:100%; }
  #my-arcazoid #player .avatar { float:left; margin:0 16px 8px 8px; }
  #my-arcazoid .logout-form { clear:both; }
  .archive-note { display:none; }
  div#content form div { margin-top:6px !important; }
  div#content form label, #content form span.label-like { float:none; display:block; width:auto; margin-bottom:4px; }
  div#content form .field { float:none; display:block; }
  div#content form input, #content form select, #content form textarea { width:100%; height:auto; min-height:36px; padding:4px 6px; }
  div#content form div.nolabel, #content form fieldset div.labelafter { padding-left:0; }
  div#content form button { min-height:36px; float:none; }
  div#content form[data-avatar-builder] .avatar-stepper select { min-width:0; width:calc(100% - 80px); }
  div#content form[data-avatar-builder] .avatar-stepper { display:flex; }
  div#content form[data-avatar-builder] .avatar-stepper button { min-width:32px; height:36px; }
  #content .game-preview { gap:12px; }
  #content .game-preview h3 { line-height:140%; }
  #content .score-note { font-size:85%; }
  .score-table, .player-table { font-size:90%; }
  .competition-table { font-size:85%; }
  #player-profile dl.content dt { width:90px; }
  #player-profile dl.content dd { width:calc(100% - 90px); }
  #footer footer { gap:12px; }
}
@media (max-width:455px) {
  div#competitions-home div.content ul { grid-template-columns:repeat(2,125px); }
  div#related aside { display:block; }
  #related #free-games ul { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 8px; }
  #content .game-preview { display:block; }
  div.section div.content .game-preview > img { float:left; margin:0 12px 8px 0; width:100px; height:100px; }
  div#page-games p.image { margin-right:12px; width:100px; height:100px; }
  #page-games .image img { width:100px; height:100px; }
  div#my-arcazoid > #login, div#my-arcazoid > #registration { float:none; width:auto; }
  #my-arcazoid #login .content { min-height:0; }
  #my-arcazoid #registration .content { min-height:105px; }
  #my-arcazoid #registration blockquote { float:left; margin-right:16px; }
  #my-arcazoid #registration .claim-link { margin-top:8px; }
  #my-arcazoid input { min-height:36px; padding:4px !important; }
  #my-arcazoid button { min-height:36px; padding:4px 12px; }
  .competition-table th:last-child, .competition-table td:last-child { display:none; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } span#payoff,.playgames-animation { animation:none; } }
.current-policy, .archive-content-note { border:1px solid #6c8f4a; background:#bddc9c; padding:8px; }
div.section div.content .current-policy h3, div.section div.content .current-policy p { margin:0 0 8px; }
div.section div.content .current-policy p:last-child { margin-bottom:0; }
div#content .archive-content-note a { color:#183e58; }
@media (max-width:799px) {
  /* Reuse the two pieces of original header artwork without leaving an empty
     desktop speech balloon behind the mobile navigation. */
  div#header div.fore { background:linear-gradient(to right,#72b5e0,#aad3ec); }
  div#header div.fore:before, div#header div.fore:after { content:""; display:block; visibility:visible; clear:none; position:absolute; top:0; height:96px; background-image:url("../legacy/default/images/header.048a6f3deff3.gif"); background-repeat:no-repeat; }
  div#header div.fore:before { left:0; width:208px; background-position:left top; }
  div#header div.fore:after { right:0; width:112px; background-position:right top; }
  div#language { right:120px; }
  div#header h1 { z-index:1; }
  div#nav-main { z-index:1; }
  div#introduction div.content { position:relative; background:none; }
  div#introduction div.content:before { content:""; position:absolute; left:8px; top:10px; width:32px; height:64px; background:url("../legacy/default/images/introduction-bg.15d9f8550ea6.gif") left top no-repeat; }
}
@media (max-width:455px) {
  div#header div.fore:after { display:none; }
  div#language { right:12px; }
}
