@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

body:has([data-game-notice]) {
  margin: 0;
  background: radial-gradient(ellipse at 50% 35%, #263c2b 0, #0c1110 65%);
  min-height: 100vh;
  color: #f4f7ed;
}

.game-notice {
  box-sizing: border-box;
  width: min(33rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  overflow: auto;
  margin: auto;
  padding: clamp(1.15rem, 5vw, 2.35rem);
  border: 1px solid #506b54;
  border-radius: 1.2rem;
  background: linear-gradient(144deg, #1a2b20, #101813 66%);
  box-shadow: 0 22px 90px #050907ad;
  color: #f4f7ed;
  font: 1rem/1.55 system-ui, sans-serif;
}

.game-notice::backdrop { background: #080d0ac4; }
.game-notice p, .game-notice h1 { margin: 0; }
.game-notice-header { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.15rem; }
.game-notice-header p { color: #d0f797; font: 600 .875rem/1.3 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .08em; }
.game-notice h1 { margin-bottom: .55rem; font: 650 clamp(2rem, 7vw, 2.8rem)/1.05 "Space Grotesk", system-ui, sans-serif; letter-spacing: -.045em; }
.game-notice #game-notice-description { color: #cad7cd; }
.game-notice-labels { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 1.1rem 0 1.45rem; list-style: none; }
.game-notice-labels li { padding: .25rem .6rem; border: 1px solid #425d46; border-radius: .4rem; color: #dbe8dc; font-size: .875rem; }
.game-notice-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.game-notice .game-notice-button { box-sizing: border-box; flex: 1 1 11rem; display: grid; place-items: center; min-height: 46px; padding: .55rem .65rem; border: 1px solid #536e56; border-radius: .5rem; background: #1c2b20; color: #f4f7ed; font: 650 .9rem/1.3 system-ui, sans-serif; text-decoration: none; text-align: center; cursor: pointer; }
.game-notice .game-notice-button:hover { background: #2a402e; }
.game-notice .game-notice-play { border-color: #d0f797; background: #d0f797; color: #172218; }
.game-notice .game-notice-play:hover { background: #e1ffbc; }
.game-notice .game-notice-play:disabled { cursor: wait; opacity: .7; }
.game-notice .game-notice-button[hidden] { display: none; }
.game-notice .game-notice-device { margin-bottom: .8rem; color: #d0f797; }
.game-notice :focus-visible { outline: 2px solid #eefdda; outline-offset: 3px; }
.game-notice .game-notice-policy, .game-notice .game-notice-error a { color: #c5d8c6; text-decoration: underline; text-underline-offset: .2em; }
.game-notice .game-notice-policy { display: inline-block; margin-top: 1rem; font-size: .875rem; }
.game-notice .game-notice-error { margin-top: .7rem; }
.game-notice-noscript { padding: 2rem; font: 1rem/1.6 system-ui, sans-serif; }
.game-notice-noscript a { color: #d0f797; }
.game-exit {
  position: fixed;
  z-index: 100;
  inset-inline-start: 50%;
  inset-block-end: max(.85rem, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  padding: .65rem .95rem;
  border: 1px solid #a3ba92;
  border-radius: .55rem;
  background: #122016;
  color: #f2ffe6;
  font: 650 .875rem/1.25 system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
.game-exit:hover, .game-exit:focus-visible { background: #d0f797; color: #162418; }
.game-exit:focus-visible { outline: 2px solid #eefdda; outline-offset: 3px; }
