* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #1f2630; color: #dfe5ec;
  font-family: "Avenir Next Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif; user-select: none; -webkit-user-select: none; touch-action: none; overscroll-behavior: none; }
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: none; }
a { color: #ffd23f; }

.vign { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at center, transparent 40%, rgba(255, 60, 20, .8) 100%); }
#hud { position: fixed; inset: 0; pointer-events: none; text-shadow: 0 1px 6px #000; }
#boss { position: absolute; top: calc(10px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: min(62vw, 620px); text-align: center; }
#bname { font-size: 15px; letter-spacing: .42em; font-weight: 700; margin-bottom: 5px; }
#bname span { color: #ff6a2a; letter-spacing: .1em; margin-left: .3em; }
#bhp { position: relative; height: 9px; background: rgba(12, 14, 18, .7); border: 1px solid rgba(223, 229, 236, .45); }
#bhp i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ff3d9a, #ff6a2a); transition: width .15s; }
#bhp u { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #dfe5ec; }
#bhp u:nth-of-type(1) { left: 25%; } #bhp u:nth-of-type(2) { left: 50%; } #bhp u:nth-of-type(3) { left: 75%; }
#barm { height: 4px; margin-top: 3px; background: rgba(12, 14, 18, .5); }
#barm i { display: block; height: 100%; width: 100%; background: #8a97a6; transition: width .1s; }
#bstate { font-size: 12px; letter-spacing: .2em; margin-top: 5px; min-height: 15px; color: #ff3d9a; font-weight: 700; }
#timer { position: absolute; left: calc(12px + env(safe-area-inset-left)); top: calc(10px + env(safe-area-inset-top)); font-size: 18px; font-weight: 700; opacity: .85; font-variant-numeric: tabular-nums; }
#fps { position: absolute; left: calc(12px + env(safe-area-inset-left)); top: calc(36px + env(safe-area-inset-top)); font-size: 11px; opacity: .8; white-space: pre; }

.cross { position: absolute; left: 50%; top: 50%; }
.cross i { position: absolute; left: -2px; top: -2px; width: 4px; height: 4px; border-radius: 50%; background: #ffd23f; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6); }
.cross svg { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; transform: rotate(-90deg); opacity: 0; }
.cross svg circle { fill: none; stroke: #ffd23f; stroke-width: 3; stroke-dasharray: 113.1; stroke-dashoffset: 113.1; }
.cross.full svg circle { stroke: #fff; }
.cross b { position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; opacity: 0; transform: rotate(45deg);
  background: linear-gradient(#fff, #fff) center/2px 100% no-repeat, linear-gradient(#fff, #fff) center/100% 2px no-repeat;
  -webkit-mask: radial-gradient(circle, transparent 5px, #000 6px); mask: radial-gradient(circle, transparent 5px, #000 6px); }
.cross b.big { background: linear-gradient(#ff3d9a, #ff3d9a) center/3px 100% no-repeat, linear-gradient(#ff3d9a, #ff3d9a) center/100% 3px no-repeat; }
.cross.heart i { background: #ff3d9a; box-shadow: 0 0 8px 2px #ff3d9a; }

#banner { position: absolute; left: 0; right: 0; top: 22%; text-align: center; opacity: 0; transition: opacity .4s; padding: 0 14px; }
#banner.on { opacity: 1; }
#banner strong { display: block; font-size: clamp(26px, 5vw, 46px); letter-spacing: .3em; color: #ff6a2a; }
#banner span { font-size: 15px; letter-spacing: .05em; }
.warn { position: absolute; left: 0; right: 0; top: 62%; text-align: center; font-size: 16px; font-weight: 700; letter-spacing: .3em; color: #ffd23f; opacity: 0; transition: opacity .12s; }
.warn.on { opacity: 1; }

.low { position: absolute; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pips { display: flex; gap: 5px; }
.pips i { width: 26px; height: 8px; background: #ffd23f; transform: skewX(-18deg); transition: background .2s; }
.pips i.off { background: rgba(12, 14, 18, .6); outline: 1px solid rgba(223, 229, 236, .3); }
.pips.low i:not(.off) { background: #ff4a1f; animation: pulse .5s infinite alternate; }
@keyframes pulse { to { opacity: .4; } }
.weapons { display: flex; gap: 6px; pointer-events: auto; }
.weapons button { position: relative; min-width: 104px; height: 44px; padding: 0 12px 0 22px; background: rgba(12, 14, 18, .6); border: 1px solid rgba(223, 229, 236, .3); border-radius: 4px; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.weapons em { position: absolute; left: 7px; top: 4px; font-style: normal; font-size: 10px; opacity: .6; }
.weapons button.on { border-color: #ffd23f; color: #ffd23f; background: rgba(255, 210, 63, .14); }
body.touch .weapons em { display: none; }
body.touch .weapons button { padding: 0 12px; min-width: 88px; }

#corner { position: absolute; right: calc(8px + env(safe-area-inset-right)); top: calc(8px + env(safe-area-inset-top)); display: flex; gap: 6px; pointer-events: auto; }
#corner button { width: 44px; height: 44px; padding: 10px; background: rgba(12, 14, 18, .55); border: 1px solid rgba(223, 229, 236, .3); border-radius: 4px; }
#corner svg { width: 100%; height: 100%; fill: #dfe5ec; stroke: #dfe5ec; }
#mute .off { display: none; } #mute.muted .on { display: none; } #mute.muted .off { display: inline; }

#touch { display: none; }
body.touch #touch { display: block; position: absolute; inset: 0; }
body.touch #boss { left: calc(12px + env(safe-area-inset-left)); transform: none; width: calc(100vw - 132px); }
@media (orientation: landscape) { body.touch #boss { left: 50%; transform: translateX(-50%); width: min(46vw, 620px); } }
body.touch #timer { top: calc(58px + env(safe-area-inset-top)); font-size: 14px; }
#stick { position: absolute; width: 112px; height: 112px; margin: -56px 0 0 -56px; border-radius: 50%; border: 2px solid rgba(223, 229, 236, .35); background: rgba(12, 14, 18, .25); opacity: 0; }
#stick.on { opacity: 1; }
#stick i { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: rgba(255, 210, 63, .55); }
#touch button { position: absolute; pointer-events: auto; border-radius: 50%; font-weight: 700; letter-spacing: .08em; font-size: 12px; border: 2px solid rgba(223, 229, 236, .5); background: rgba(12, 14, 18, .45); text-shadow: none; }
#fire { right: calc(18px + env(safe-area-inset-right)); bottom: calc(128px + env(safe-area-inset-bottom)); width: 92px; height: 92px; font-size: 15px !important; border-color: #ffd23f !important; color: #ffd23f; }
#jump { right: calc(118px + env(safe-area-inset-right)); bottom: calc(118px + env(safe-area-inset-bottom)); width: 64px; height: 64px; }
#dodge { right: calc(96px + env(safe-area-inset-right)); bottom: calc(196px + env(safe-area-inset-bottom)); width: 64px; height: 64px; }
#aim { right: calc(22px + env(safe-area-inset-right)); bottom: calc(232px + env(safe-area-inset-bottom)); width: 60px; height: 60px; }
#touch button.on { background: rgba(255, 210, 63, .4); }
@media (orientation: landscape) and (max-height: 500px) {
  #fire { bottom: calc(40px + env(safe-area-inset-bottom)); right: calc(30px + env(safe-area-inset-right)); }
  #jump { bottom: calc(26px + env(safe-area-inset-bottom)); right: calc(134px + env(safe-area-inset-right)); }
  #dodge { bottom: calc(100px + env(safe-area-inset-bottom)); right: calc(128px + env(safe-area-inset-right)); }
  #aim { bottom: calc(142px + env(safe-area-inset-bottom)); right: calc(44px + env(safe-area-inset-right)); }
  .low { left: 32%; }
}

.card { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(92vw, 440px); max-height: 96vh; overflow: auto; padding: 22px 20px; text-align: center;
  background: rgba(12, 14, 18, .82); border: 1px solid rgba(223, 229, 236, .22); border-radius: 6px; backdrop-filter: blur(4px); touch-action: pan-y; }
.card.wide { width: min(94vw, 620px); }
.card h1 { margin: 0 0 8px; font-size: clamp(34px, 9vw, 58px); letter-spacing: .16em; line-height: 1; color: #dfe5ec; text-shadow: 0 0 22px rgba(255, 106, 42, .7); }
.card h2 { margin: 0 0 10px; font-size: 26px; letter-spacing: .1em; }
.card .tag { margin: 0 0 14px; color: #8a97a6; font-size: 15px; line-height: 1.45; }
.card button { display: block; width: 100%; min-height: 46px; margin: 8px 0; background: transparent; border: 1px solid rgba(223, 229, 236, .4); border-radius: 4px; font-size: 15px; letter-spacing: .08em; }
.card button.big { min-height: 58px; font-size: 20px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #0c0e12; background: #ffd23f; border-color: #ffd23f; }
.card button.big:disabled { opacity: .35; cursor: default; }
.card label { display: block; margin: 12px 0; font-size: 13px; }
.card label input[type=range] { width: 100%; margin-top: 6px; }
.card .keys { font-size: 12.5px; line-height: 1.6; opacity: .8; margin: 12px 0 0; }
.card .small { font-size: 12.5px; opacity: .75; margin: 10px 0 0; line-height: 1.5; }
.finger { display: none; } body.touch .finger { display: block; } body.touch .mouse { display: none; }

#roster { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 4%; height: clamp(170px, 34vh, 280px); margin: 0 0 14px; padding-bottom: 26px;
  background: linear-gradient(#1f2630, #8a97a6 82%, #3b3f45 82%); border-radius: 4px; overflow: hidden; }
#roster .mon { position: relative; width: 27%; height: 100%; margin: 0; padding: 0; border: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; background: none; }
#roster svg { height: 78%; width: auto; fill: #3d4651; opacity: .8; filter: blur(1px); }
#roster .mon { cursor: pointer; }
#roster .mon:nth-child(2) svg { height: 62%; } #roster .mon:nth-child(3) svg { height: 70%; margin-bottom: 14%; }
#roster .mon.on svg { fill: #24282e; opacity: 1; filter: drop-shadow(0 0 12px rgba(255, 106, 42, .45)); }
#roster .seam { fill: none; stroke: #ff6a2a; stroke-width: 2.4; }
#roster b { position: absolute; bottom: -22px; left: 0; right: 0; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; }
#roster span { position: absolute; top: 8px; left: 0; right: 0; font-size: 11px; letter-spacing: .08em; opacity: .8; color: #dfe5ec; }
#you { position: absolute; left: 6%; bottom: 27px; font-size: 10px; letter-spacing: .1em; color: #ffd23f; display: flex; flex-direction: column; align-items: center; }
#you i { order: 2; width: 3px; height: 4px; background: #ffd23f; margin-top: 1px; }

#arms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
#arms button { margin: 0; padding: 12px 8px; min-height: 150px; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
#arms button b { font-size: 19px; letter-spacing: .16em; text-transform: uppercase; }
#arms button i { font-style: normal; font-size: 12px; color: #ffd23f; letter-spacing: .04em; }
#arms button span { font-size: 12px; line-height: 1.35; opacity: .8; letter-spacing: 0; }
#arms button svg { width: 80%; max-width: 110px; height: 30px; fill: #8a97a6; }
#arms button.on { border-color: #ffd23f; background: rgba(255, 210, 63, .12); } #arms button.on svg { fill: #ffd23f; }
#arms button.left { opacity: .45; }
@media (max-width: 480px) { #arms { grid-template-columns: 1fr; } #arms button { min-height: 0; padding: 9px 10px; display: grid; grid-template-columns: 64px 1fr; text-align: left; column-gap: 10px; row-gap: 1px; }
  #arms button svg { grid-row: 1 / 4; width: 64px; align-self: center; } }

#bar { height: 8px; background: rgba(223, 229, 236, .15); } #bar i { display: block; height: 100%; width: 0; background: #ff6a2a; }
#rgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 4px 0 12px; font-size: 15px; text-align: left; }
#rgrid span { opacity: .65; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; display: block; }
#result.won h2 { color: #ffd23f; font-size: 30px; }
.warn.safe { color: #b8fff0; }

/* Co-op: each player on this screen has their own crosshair, health and weapons (.pv); two of them on the couch. */
.pv { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
body.couch #pv0 { right: 50%; border-right: 2px solid #0c0e12; } body.couch #pv1 { left: 50%; }
body.couch .weapons button { min-width: 84px; height: 36px; font-size: 12px; } body.couch .weapons em { display: none; }
.warn { padding: 0 10px; }
#team { position: absolute; left: calc(12px + env(safe-area-inset-left)); top: calc(62px + env(safe-area-inset-top)); font-size: 13px; letter-spacing: .06em; line-height: 1.7; }
#team div { display: flex; align-items: center; gap: 6px; } #team i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
#team b { font-weight: 400; letter-spacing: -.05em; opacity: .9; } #team .dn { color: #ff4a1f; font-weight: 700; }
body.touch #team { top: calc(82px + env(safe-area-inset-top)); font-size: 11px; }
body.couch #team { left: 50%; transform: translateX(-50%); top: calc(64px + env(safe-area-inset-top)); display: flex; gap: 14px; }
.card .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .card .two button { margin: 0; }
body.touch #couchB { display: none; } body.touch .card .two { grid-template-columns: 1fr; }
#slots { list-style: none; margin: 0 0 10px; padding: 0; text-align: left; } #slots li { padding: 10px 12px; margin: 6px 0; border: 1px solid rgba(223, 229, 236, .25); border-radius: 4px; font-size: 15px; }
#slots li b { letter-spacing: .12em; } #slots li.on { border-color: #ffd23f; } #slots li span { float: right; opacity: .85; }
#cobar { position: fixed; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 100000; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; width: min(96vw, 640px); }
#cobar button { min-height: 46px; padding: 0 14px; background: rgba(12, 14, 18, .92); border: 1px solid #ffd23f; border-radius: 4px; font-size: 14px; letter-spacing: .06em; color: #ffd23f; }
#cobar button:disabled { border-color: rgba(223, 229, 236, .3); color: #dfe5ec; opacity: .8; cursor: default; }
.netonly { display: none !important; } .net .netonly { display: block !important; } .net .solonly { display: none !important; }
#rteam { margin: 0 0 12px; font-size: 13.5px; text-align: left; } #rteam div { display: grid; grid-template-columns: 12px 1.1fr 1.6fr auto; gap: 8px; align-items: center; padding: 4px 0; border-top: 1px solid rgba(223, 229, 236, .14); }
#rteam i { width: 9px; height: 9px; border-radius: 50%; } #rteam span { opacity: .75; font-size: 12px; }
.padk { display: none; } body.pad .padk { display: block; } body.pad .keys.mouse { display: none; }

/* The order, the harder form, records by weapon pair, today's hunt, the share card and the end-screen vote. */
#roster .mon.locked { cursor: default; } #roster .mon.locked svg { opacity: .3; filter: blur(2.5px); } #roster .mon.locked b { opacity: .45; } #roster .mon.locked span { color: #8a97a6; }
#huntB { padding: 8px 10px; border-color: rgba(184, 255, 240, .5); } #huntB b { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #b8fff0; } #huntB span { display: block; font-size: 13.5px; letter-spacing: .03em; margin-top: 2px; }
#huntB:disabled { opacity: .5; cursor: default; }
#hardB { border-color: #ff3d9a; color: #ff3d9a; } #hardB.on { background: rgba(255, 61, 154, .16); }
#pform { margin: -4px 0 10px; } #pform b { color: #dfe5ec; font-weight: 400; }
#pairs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 2px; }
#pairs button { margin: 0; min-height: 40px; padding: 5px 4px; font-size: 12px; letter-spacing: .02em; line-height: 1.3; opacity: .8; } #pairs button.on { border-color: #ffd23f; opacity: 1; }
#pairs span { display: block; color: #ffd23f; } #pairs span.none { color: #8a97a6; }
#rcard canvas { display: block; margin: 0 auto 10px; max-width: 100%; max-height: 170px; width: auto; height: auto; border-radius: 4px; border: 1px solid rgba(223, 229, 236, .22); }
#vote { margin-top: 12px; border-top: 1px solid rgba(223, 229, 236, .14); } #vote .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
#vote .opts button { margin: 0; min-height: 40px; font-size: 12.5px; letter-spacing: .02em; padding: 4px 6px; }
#door { min-height: 40px; font-size: 13px; border-style: dashed; opacity: .85; }
.card button { touch-action: manipulation; }
#extras { margin-top: 8px; } #extras:has(#hardB[hidden]) { grid-template-columns: 1fr; }
