:root {
  --ui-bg: #0b1a24;
  --ui-text: #f4f8fb;
  --ui-accent: #39b6e8;
  --ui-panel: rgba(8, 22, 34, .82);
}
html, body { margin: 0; height: 100%; overflow: hidden; background: #000; color: var(--ui-text); font: 14px/1.35 Verdana, Arial, sans-serif; }
#game { position: fixed; left: 0; top: 0; width: 100%; height: 100%; display: block; outline: none; touch-action: none; }
.gui-canvas { position: fixed; z-index: 20; pointer-events: none; }
#ui { position: fixed; inset: 0; pointer-events: none; }
#ui { height: 100dvh; }
#ui > * { pointer-events: auto; }
.hidden { display: none !important; }

.ui-loading { position: absolute; inset: 0; background: #000; z-index: 50; }
.ui-loading-screen { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(100vw, calc(100dvh * 4 / 3)); aspect-ratio: 4 / 3; }

.ui-messages { position: absolute; left: 50%; top: 12%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; pointer-events: none !important; z-index: 40; }
.ui-message { background: var(--ui-panel); padding: 8px 16px; border-radius: 10px; font-weight: bold; text-align: center; transition: opacity .4s; max-width: 70vw; }
.ui-message.fade { opacity: 0; }
.dlgwin { position: absolute; inset: 0; pointer-events: none !important; z-index: 25; --gui: 1; }
.dlg-subtitle { position: absolute; left: 50%; bottom: calc(100% * 25 / 600); transform: translateX(-50%); max-width: calc(600px * var(--gui)); background: rgba(255, 255, 255, .72); color: #10202c; font: bold calc(14px * var(--gui)) / 1.3 Verdana, Arial, sans-serif; padding: calc(4px * var(--gui)) calc(10px * var(--gui)); border-radius: calc(4px * var(--gui)); text-align: center; white-space: pre-wrap; }
.dlg-panel { position: absolute; left: 50%; bottom: calc(100px * var(--gui)); transform: translateX(-50%); width: calc(436px * var(--gui)); height: calc(172px * var(--gui)); background: center / 100% 100% no-repeat; pointer-events: auto; }
.dlg-answers { position: absolute; left: calc(20px * var(--gui)); top: calc(20px * var(--gui)); right: calc(20px * var(--gui)); bottom: calc(40px * var(--gui)); overflow: auto; display: flex; flex-direction: column; gap: calc(3px * var(--gui)); }
.dlg-answer { text-align: left; background: transparent; border: 0; color: #0c2a3c; font: bold calc(12px * var(--gui)) / 1.3 Arial, Verdana, sans-serif; padding: 2px 4px; cursor: pointer; border-radius: 4px; }
.dlg-answer:hover, .dlg-answer:focus-visible { background: rgba(255, 255, 255, .55); color: #000; outline: none; }
.dlg-close { position: absolute; right: calc(14px * var(--gui)); bottom: calc(10px * var(--gui)); background: #39b6e8; color: #062030; border: 0; border-radius: 8px; padding: calc(3px * var(--gui)) calc(10px * var(--gui)); font: bold calc(12px * var(--gui)) Verdana, Arial, sans-serif; cursor: pointer; }
.dlg-close:hover, .dlg-close:focus-visible { background: #6fd0f5; outline: 2px solid #fff; }
.chat { position: absolute; left: 12px; bottom: 40px; width: min(460px, 70vw); z-index: 24; pointer-events: none !important; }
.chat-log { display: flex; flex-direction: column; gap: 2px; }
/* "Vis chat" off: no lines over the world; opening the chat box shows them. */
body.hide-chat .chat:not(.open) .chat-log { display: none; }
/* "Las musen til kameraet": a dot in the middle, where a click picks. */
body.mouse-locked::after { content: ''; position: fixed; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: rgba(255, 255, 255, .85); box-shadow: 0 0 2px rgba(0, 0, 0, .9); pointer-events: none; z-index: 30; }
.chat-line { font-weight: bold; text-shadow: 0 1px 2px #000, 0 0 4px #000; transition: opacity 1s; }
.chat-line.old { opacity: 0; }
.chat-line.system { color: #f6e05e; }
/* Closed: the last 8 lines, fading. Typing: the history, scrolling (chat.js keeps 100). */
.chat:not(.open) .chat-line:nth-last-child(n+9) { display: none; }
.chat.open .chat-log { max-height: min(42vh, 360px); overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; pointer-events: auto; background: rgba(8, 26, 40, .55); border-radius: 8px; padding: 6px 8px; scrollbar-width: thin; scrollbar-color: #4fc3ef transparent; }
.chat.open .chat-log:empty { display: none; }
.chat.open .chat-line.old { opacity: 1; }
.chat-input { pointer-events: auto; width: 100%; margin-top: 6px; background: rgba(8, 26, 40, .9); color: var(--ui-text); border: 2px solid #4fc3ef; border-radius: 8px; padding: 6px 8px; font: bold 14px Verdana, Arial, sans-serif; }
.chat-policy { margin-top: 6px; padding: 6px 8px; background: var(--ui-panel); color: var(--ui-text); font: 11px/1.4 Verdana, Arial, sans-serif; border-radius: 5px; }
.chat:not(.open):not(.chat-closed) .chat-policy { display: none; }
.chat-input:read-only { color: var(--ui-text); border-color: #7d9aaa; cursor: default; }
.menu-btn { background: #39b6e8; color: #062030; border: 0; border-radius: 10px; padding: 10px; font: bold 16px Verdana, Arial, sans-serif; cursor: pointer; }
.menu-btn:hover, .menu-btn:focus-visible { background: #6fd0f5; outline: 2px solid #fff; }
.plugin-layer { position: absolute; inset: 0; z-index: 30; background: #000; overflow: hidden; }
body.in-studio #game { visibility: hidden; }
body.settings-open #game { filter: brightness(.5); }
.settings-canvas { position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: 46; touch-action: none; }
.safe-probe { position: fixed; left: 0; top: 0; visibility: hidden; pointer-events: none; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
/* The not-NRK notice (shell.js): out of the way, never in the way of a click. */
.ui-notice { position: absolute; left: 50%; bottom: max(3px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 51; font: 11px/1.2 Verdana, Arial, sans-serif; color: rgba(244, 248, 251, .72); text-shadow: 0 1px 2px #000, 0 0 3px #000; white-space: nowrap; pointer-events: none !important; -webkit-user-select: none; user-select: none; }
body.in-studio .ui-notice, #ui:has(.emote-wheel:not(.hidden)) .ui-notice { display: none; }
.ui-debug { position: absolute; left: 8px; bottom: 8px; font: 12px/1.3 ui-monospace, Consolas, monospace; background: rgba(0,0,0,.55); padding: 4px 8px; border-radius: 4px; pointer-events: none !important; z-index: 60; }
/* --- touch screens and the corner buttons (ui/touch.js, ui/touchkeys.js) --- */
html, body { overscroll-behavior: none; touch-action: none; }
body.phone { position: fixed; inset: 0; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.gui-canvas { touch-action: none; }
.chat-input, .tp-field { -webkit-user-select: text; user-select: text; }
body.phone .chat { left: calc(16px + env(safe-area-inset-left)); bottom: calc(150px + env(safe-area-inset-bottom)); width: min(420px, 60vw); }
body.phone .chat-input { font-size: 16px; }
/* A phone keyboard covers the lower half: type at the top, where iOS need not scroll to show the field. */
/* Typing: the box moves to the top, clear of the keyboard, and follows the visible area (chat.js sets --vv-top). */
body.phone .chat.open { left: 50%; right: auto; bottom: auto; top: calc(var(--vv-top, 0px) + max(10px, env(safe-area-inset-top))); transform: translateX(-50%); width: min(460px, calc(100vw - 260px)); display: flex; flex-direction: column-reverse; gap: 6px; }
body.phone .chat.open .chat-input { margin-top: 0; box-sizing: border-box; }
body.phone .chat.open .chat-line.old { opacity: .9; }
body.phone .chat-line { width: fit-content; max-width: 100%; font-size: 13px; background: rgba(8, 26, 40, .6); padding: 2px 8px; border-radius: 8px; }

.ui-corner { position: absolute; z-index: 26; top: max(var(--corner-top, 8px), env(safe-area-inset-top)); right: max(var(--corner-right, 8px), env(safe-area-inset-right)); display: flex; gap: 8px; pointer-events: none !important; }
.corner-btn { pointer-events: auto; width: 40px; height: 40px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 2px solid rgba(79, 195, 239, .85); background: rgba(8, 26, 40, .6); color: var(--ui-text); cursor: pointer; touch-action: manipulation; }
.corner-btn svg { width: 22px; height: 22px; }
.corner-btn:hover, .corner-btn:focus-visible { background: #39b6e8; color: #062030; outline: none; }
body.phone .corner-btn { width: 46px; height: 46px; }
body.phone .corner-btn svg { width: 26px; height: 26px; }
body.in-studio .ui-corner { display: none; }

.touch-world { position: absolute; inset: 0; z-index: 22; pointer-events: none !important; }
.touch-stick { position: absolute; left: calc(28px + env(safe-area-inset-left)); bottom: calc(28px + env(safe-area-inset-bottom)); width: 112px; height: 112px; box-sizing: border-box; border-radius: 50%; background: rgba(8, 26, 40, .3); border: 2px solid rgba(244, 248, 251, .4); opacity: .5; transition: opacity .15s; }
.touch-stick.on { opacity: 1; }
.touch-knob { position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px; box-sizing: border-box; border-radius: 50%; background: rgba(244, 248, 251, .6); border: 2px solid #4fc3ef; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.touch-btn, .tp-key { position: relative; pointer-events: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0; box-sizing: border-box; border-radius: 50%; border: 2px solid rgba(79, 195, 239, .85); background: rgba(8, 26, 40, .45); color: var(--ui-text); font: bold 11px/1 Verdana, Arial, sans-serif; text-shadow: 0 1px 2px #000; touch-action: none; -webkit-user-select: none; user-select: none; cursor: pointer; }
.touch-btn svg, .tp-key svg { width: 30px; height: 30px; }
.touch-btn.on, .tp-key.on { background: rgba(57, 182, 232, .85); color: #062030; text-shadow: none; }
.touch-btn { position: absolute; }
.touch-jump { right: calc(24px + env(safe-area-inset-right)); bottom: calc(34px + env(safe-area-inset-bottom)); width: 84px; height: 84px; }
.touch-crouch { right: calc(122px + env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); width: 62px; height: 62px; }
.touch-crouch svg { width: 24px; height: 24px; }

.phone-hints { position: absolute; z-index: 60; left: max(12px, env(safe-area-inset-left)); right: calc(70px + env(safe-area-inset-right)); top: max(12px, env(safe-area-inset-top)); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none !important; }
.hint-pill.fade { opacity: 0; }
.hint-pill { display: flex; align-items: center; gap: 10px; max-width: 560px; padding: 8px 14px; border-radius: 12px; background: var(--ui-panel); border: 2px solid #4fc3ef; font-weight: bold; font-size: 13px; transition: opacity .8s; }
.home-pill { pointer-events: auto; }
.home-pill svg { width: 18px; height: 18px; vertical-align: -3px; }
.home-pill .menu-btn { flex: none; padding: 6px 12px; font-size: 13px; }
.rotate-pill svg { width: 24px; height: 24px; flex: none; animation: rotate-phone 2.4s ease-in-out infinite; }
@keyframes rotate-phone { 0%, 25% { transform: rotate(0); } 55%, 100% { transform: rotate(-90deg); } }
@media (prefers-reduced-motion: reduce) { .rotate-pill svg { animation: none; transform: rotate(-90deg); } }

.touch-pad { position: absolute; inset: 0; z-index: 35; pointer-events: none !important; }
.tp-dpad { position: absolute; left: calc(18px + env(safe-area-inset-left)); bottom: calc(18px + env(safe-area-inset-bottom)); width: 150px; height: 150px; box-sizing: border-box; border-radius: 50%; background: rgba(8, 26, 40, .42); border: 2px solid rgba(79, 195, 239, .8); pointer-events: auto; touch-action: none; }
.tp-arrow { position: absolute; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; color: rgba(244, 248, 251, .9); pointer-events: none; }
.tp-arrow svg { width: 30px; height: 30px; }
.tp-arrow.on { background: rgba(57, 182, 232, .85); color: #062030; }
.tp-up { left: 50%; top: 6px; margin-left: -23px; }
.tp-down { left: 50%; bottom: 6px; margin-left: -23px; }
.tp-left { top: 50%; left: 6px; margin-top: -23px; }
.tp-right { top: 50%; right: 6px; margin-top: -23px; }
.tp-lr { position: absolute; left: calc(18px + env(safe-area-inset-left)); bottom: calc(22px + env(safe-area-inset-bottom)); display: flex; gap: 14px; }
.tp-lr .tp-key { width: 78px; height: 78px; }
.tp-actions { position: absolute; right: calc(18px + env(safe-area-inset-right)); bottom: calc(22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column-reverse; align-items: center; gap: 12px; }
.tp-big { width: 84px; height: 84px; font-size: 13px; }
.tp-small { width: 58px; height: 58px; font-size: 10px; }
.tp-kbd { position: absolute; left: calc(10px + env(safe-area-inset-left)); top: 50%; margin-top: -24px; width: 48px; height: 48px; }
.tp-kbd svg { width: 26px; height: 26px; }
.tp-text { position: absolute; left: 50%; top: max(10px, env(safe-area-inset-top)); transform: translateX(-50%); width: min(440px, calc(100vw - 32px)); display: flex; gap: 8px; pointer-events: auto; }
.tp-field { flex: 1; min-width: 0; background: rgba(8, 26, 40, .92); color: var(--ui-text); border: 2px solid #4fc3ef; border-radius: 8px; padding: 6px 8px; font: bold 16px Verdana, Arial, sans-serif; }
.tp-done { padding: 6px 12px; font-size: 14px; }

/* --- the emote wheel (ui/emotewheel.js) --- */
.emote-wheel { position: absolute; inset: 0; z-index: 44; display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, rgba(4, 14, 22, .25), rgba(4, 14, 22, .6)); touch-action: none; -webkit-user-select: none; user-select: none; }
.ew-ring { position: relative; width: min(520px, 86vmin); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(8, 26, 40, .15) 0 27%, rgba(8, 26, 40, .62) 28% 100%); border: 3px solid rgba(79, 195, 239, .85); box-shadow: 0 0 0 6px rgba(8, 26, 40, .35), 0 10px 40px rgba(0, 0, 0, .5); }
.ew-item { position: absolute; width: 23%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; padding: 0; border: 3px solid #6aaed3; background: radial-gradient(circle at 50% 35%, #fff, #dcf0fa); cursor: pointer; transition: transform .12s, background .12s, box-shadow .12s; box-shadow: 0 3px 8px rgba(0, 0, 0, .45); touch-action: manipulation; }
.ew-item.sel { transform: translate(-50%, -50%) scale(1.18); border-color: #fff; background: radial-gradient(circle at 50% 35%, #fff, #b9e6fa); box-shadow: 0 0 0 4px #39b6e8, 0 6px 16px rgba(0, 0, 0, .5); z-index: 1; }
.ew-icon { width: 100%; height: 100%; display: block; border-radius: 50%; pointer-events: none; }
.ew-key { position: absolute; right: 1%; bottom: 1%; width: 1.5em; height: 1.5em; border-radius: 50%; background: #0b2d42; color: #fff; font: bold 11px/1.5em Verdana, Arial, sans-serif; text-align: center; pointer-events: none; }
.ew-center { position: absolute; left: 50%; top: 50%; width: 40%; aspect-ratio: 1; transform: translate(-50%, -50%); box-sizing: border-box; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #fff, #d6ecf8); border: 3px solid #6aaed3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5%; color: #0c2a3c; text-align: center; box-shadow: inset 0 -6px 14px rgba(57, 182, 232, .22), 0 4px 14px rgba(0, 0, 0, .4); }
.ew-label { font: bold clamp(14px, 3.6vmin, 20px)/1.15 Verdana, Arial, sans-serif; padding: 0 10%; min-height: 2.3em; display: flex; align-items: center; justify-content: center; }
.ew-nav { display: flex; align-items: center; gap: 6px; }
.ew-page { font: bold clamp(12px, 2.8vmin, 15px) Verdana, Arial, sans-serif; color: #1d6f96; min-width: 4.6em; }
.ew-arrow { width: clamp(28px, 6vmin, 36px); aspect-ratio: 1; border-radius: 50%; border: 0; padding: 0; background: #39b6e8; color: #062030; font: bold 20px/1 Verdana, Arial, sans-serif; cursor: pointer; touch-action: manipulation; }
.ew-arrow:hover, .ew-arrow:focus-visible { background: #6fd0f5; outline: none; }
.ew-dots { display: flex; gap: 5px; }
.ew-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(12, 42, 60, .22); }
.ew-dots span.on { background: #39b6e8; }
.ew-hint { position: absolute; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ui-panel); padding: 6px 14px; border-radius: 10px; font-weight: bold; font-size: 13px; white-space: pre; pointer-events: none; }
.corner-btn.on { background: #39b6e8; color: #062030; }
body.phone .ew-ring { width: min(520px, 92vmin); }
body.phone .ew-key, body.phone .ew-hint { display: none; }

/* --- the player list (ui/playerlist.js): Tab, like Minecraft's --- */
.player-list { position: absolute; left: 50%; top: calc(64px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 43; width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 120px); overflow-y: auto; box-sizing: border-box; padding: 10px 12px 12px; border-radius: 12px; background: rgba(8, 26, 40, .78); border: 2px solid rgba(79, 195, 239, .85); box-shadow: 0 8px 30px rgba(0, 0, 0, .45); color: #fff; font: 14px Verdana, Arial, sans-serif; pointer-events: none; -webkit-user-select: none; user-select: none; }
.pl-title { font-weight: bold; font-size: 15px; text-align: center; color: #9fe0fa; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid rgba(79, 195, 239, .35); }
.pl-row { display: flex; align-items: center; gap: 10px; padding: 5px 6px; border-radius: 6px; }
.pl-row:nth-child(even) { background: rgba(255, 255, 255, .05); }
.pl-row.me { background: rgba(57, 182, 232, .22); }
.pl-name { flex: 1; min-width: 0; font-weight: bold; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-you { font-weight: normal; color: #9fe0fa; }
.pl-where { color: #c9dde8; font-size: 13px; white-space: nowrap; }
.pl-where.here { color: #7fe0a0; }
.pl-via { flex: none; min-width: 34px; text-align: center; font: bold 10px/18px Verdana, Arial, sans-serif; border-radius: 9px; padding: 0 6px; }
.pl-via.web { background: #39b6e8; color: #062030; }
.pl-via.pc { background: #f2b33d; color: #2a1800; }
body.phone .player-list { top: calc(10px + env(safe-area-inset-top)); pointer-events: auto; }
/* The moderator panel (modmenu.js, F9). */
.mod-menu { position: absolute; right: 12px; top: calc(150px + env(safe-area-inset-top)); z-index: 44; width: min(400px, calc(100vw - 32px)); max-height: calc(100vh - 200px); overflow-y: auto; box-sizing: border-box; padding: 10px 12px 12px; border-radius: 12px; background: rgba(8, 26, 40, .86); border: 2px solid rgba(242, 179, 61, .9); box-shadow: 0 8px 30px rgba(0, 0, 0, .45); color: #fff; font: 13px Verdana, Arial, sans-serif; }
.mm-title { font-weight: bold; font-size: 15px; text-align: center; color: #f2c66b; padding-bottom: 6px; border-bottom: 1px solid rgba(242, 179, 61, .4); }
.mm-head { margin: 10px 0 4px; font-weight: bold; color: #9fe0fa; }
.mm-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.mm-players .mm-row:nth-child(even) { background: rgba(255, 255, 255, .05); }
.mm-name { flex: 1; min-width: 0; font-weight: bold; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-place { color: #c9dde8; white-space: nowrap; }
.mm-note { color: #c9dde8; padding: 3px 0; }
.mm-where { flex: 1; min-width: 0; color: #c9dde8; font-family: Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-select { flex: 1; min-width: 0; font: 13px Verdana, Arial, sans-serif; padding: 3px; border-radius: 6px; border: 1px solid #4fc3ef; background: #0d2a3c; color: #fff; }
.mm-btn { flex: none; font: bold 12px Verdana, Arial, sans-serif; padding: 4px 10px; border-radius: 8px; border: 1px solid #4fc3ef; background: #164a66; color: #fff; cursor: pointer; }
.mm-btn:hover { background: #1f6488; }
.mm-btn.on { background: #f2b33d; border-color: #f2b33d; color: #2a1800; }
.mm-btn:disabled, .mm-select:disabled { opacity: .5; cursor: default; }
.mm-btn:disabled:hover { background: #164a66; }
.mm-btn:focus-visible, .mm-select:focus-visible { outline: 2px solid oklch(87% .13 85); outline-offset: 2px; }
.mm-note.mm-error { color: oklch(85% .1 25); }
.mm-primary { background: oklch(83% .14 85); color: oklch(25% .03 70); border-color: oklch(83% .14 85); }
.mm-primary:hover { background: oklch(89% .12 85); }
.mm-primary:disabled:hover { background: oklch(83% .14 85); }
.world-event-notice { position: absolute; left: 50%; top: 145px; transform: translateX(-50%); width: min(440px, calc(100vw - 24px)); box-sizing: border-box; z-index: 36; padding: 13px 48px 13px 18px; color: oklch(97% .01 235); text-align: left; font-family: Verdana, Arial, sans-serif; pointer-events: none !important; }
.we-skin { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.we-title { font-size: 13px; font-weight: bold; text-shadow: 0 1px oklch(35% .035 235); }
.we-copy { margin-top: 5px; font-size: 11px; line-height: 1.4; }
.we-waypoint { margin-top: 6px; font-size: 10px; color: oklch(95% .02 235); }
.we-close { position: absolute; top: 3px; right: 3px; width: 44px; height: 44px; padding: 6px; border: 0; background: transparent center / 32px 32px no-repeat; color: oklch(97% .01 235); font: bold 24px Verdana, sans-serif; cursor: pointer; pointer-events: auto; touch-action: manipulation; }
.we-close:hover { filter: brightness(1.15); }
.we-close:focus-visible, .we-reopen:focus-visible { outline: 2px solid oklch(97% .01 235); outline-offset: 2px; }
.we-reopen { position: absolute; top: 145px; left: 50%; transform: translateX(-50%); z-index: 36; min-height: 44px; padding: 5px 14px; border: 2px ridge oklch(85% .025 235); border-radius: 6px; background: oklch(63% .045 235); color: oklch(97% .01 235); font: bold 11px Verdana, sans-serif; cursor: pointer; }
.world-event-notice.compact { top: 90px; padding: 13px 48px 13px 16px; }
.world-event-notice.compact .we-title { font-size: 11px; }
.world-event-notice.compact .we-copy, .world-event-notice.compact .we-waypoint { display: none; }
body.phone .world-event-notice, body.phone .we-reopen { top: max(76px, calc(54px + env(safe-area-inset-top))); }
body.phone .world-event-notice { width: min(360px, calc(100vw - 24px)); padding: 12px 48px 12px 15px; }
body.phone .we-copy { font-size: 10px; }
body.phone .we-waypoint { display: none; }
@media (max-width: 700px) { .world-event-notice, .we-reopen { top: 92px; } .we-title { font-size: 12px; } }
