@charset "UTF-8";

.hall-game {
  margin-top: 1rem;
  color: #fff9e9;
}

.game-stage {
  position: relative;
  height: clamp(620px, 76svh, 790px);
  min-height: 0;
  isolation: isolate;
  overflow: hidden;
  border: 2px solid #897651;
  border-radius: 18px;
  background: #223d39;
  box-shadow: 0 24px 64px rgb(24 43 36 / 0.19), inset 0 0 0 4px rgb(255 249 229 / 0.25);
  touch-action: pan-y;
}

.game-stage:focus-visible {
  outline-offset: 5px;
}

.game-room,
.game-room-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.game-room {
  z-index: -2;
  object-fit: cover;
  object-position: center 57%;
  filter: saturate(0.91) contrast(1.04);
}

.game-room-shade {
  z-index: -1;
  background: linear-gradient(180deg, rgb(11 35 33 / 0.84) 0%, rgb(11 35 33 / 0.08) 22%, rgb(9 28 27 / 0.03) 48%, rgb(10 33 31 / 0.37) 70%, rgb(8 25 25 / 0.89) 100%);
}

.game-head {
  position: absolute;
  z-index: 10;
  inset: 18px 20px auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  pointer-events: none;
}

.game-identity,
.game-head-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.game-seal {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgb(242 214 151 / 0.72);
  border-radius: 50%;
  color: #f2d697;
  background: rgb(14 45 41 / 0.64);
  font: 1.4rem/1 Georgia, serif;
}

.game-overline,
.game-task-label,
.game-dialog-kicker {
  display: block;
  color: #e8d4a9;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.game-identity h1 {
  margin: 0.1rem 0 0;
  color: #fff9e9;
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 12px #102e2c;
}

.game-demo-badge {
  padding: 0.42rem 0.68rem;
  border: 1px solid rgb(255 249 229 / 0.32);
  border-radius: 999px;
  background: rgb(15 47 43 / 0.75);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.game-icon-button,
.game-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(255 249 229 / 0.5);
  border-radius: 50%;
  background: rgb(15 47 43 / 0.8);
  color: #fff9e9;
  font: 700 1rem/1 var(--sans);
  pointer-events: auto;
}

.game-icon-button:hover,
.game-close:hover {
  background: #396259;
}

.game-task {
  position: absolute;
  z-index: 8;
  top: 86px;
  left: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  width: min(282px, calc(100% - 40px));
  padding: 0.78rem 0.9rem;
  border: 1px solid rgb(232 212 169 / 0.55);
  border-radius: 10px;
  background: rgb(13 48 43 / 0.82);
  box-shadow: 0 10px 24px rgb(8 27 24 / 0.24);
  backdrop-filter: blur(9px);
  line-height: 1.4;
}

.game-task-label,
.game-task strong {
  grid-column: 1;
}

.game-task strong {
  font-size: 0.89rem;
  font-weight: 600;
}

.game-task-progress {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  color: #f2d697;
  font-weight: 700;
  white-space: nowrap;
}

.game-task-track {
  grid-column: 1 / -1;
  height: 4px;
  margin-top: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(255 249 229 / 0.23);
}

.game-task-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #eccd89;
  transition: width 0.25s ease;
}

.game-point,
.game-person,
.game-player {
  position: absolute;
  z-index: 3;
}

.game-point {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff9e9;
  transform: translate(-50%, -50%);
}

.game-point-issue {
  left: 50%;
  top: 52%;
}

.game-point-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid #f0d489;
  border-radius: 50%;
  background: rgb(21 68 60 / 0.92);
  box-shadow: 0 0 0 6px rgb(240 212 137 / 0.19), 0 0 28px rgb(240 212 137 / 0.62);
  font: 700 1.4rem/1 Georgia, serif;
}

.game-point-label,
.game-person-name,
.game-player-name {
  padding: 0.22rem 0.52rem;
  border: 1px solid rgb(255 249 229 / 0.46);
  border-radius: 999px;
  background: rgb(14 46 43 / 0.9);
  color: #fff9e9;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgb(7 24 23 / 0.34);
}

.game-person {
  width: 120px;
  height: 138px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translate(-50%, -100%);
}

.game-person-artisan {
  left: 30%;
  top: 67%;
}

.game-person-nurse {
  left: 70%;
  top: 67%;
}

.game-person img,
.game-player img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 5px 2px rgb(16 37 33 / 0.42)) drop-shadow(0 10px 15px rgb(10 28 25 / 0.3));
  pointer-events: none;
}

.game-person-name,
.game-player-name {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: -23px;
  transform: translateX(-50%);
}

.game-person-ring,
.game-player-shadow {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 0;
  width: 68px;
  height: 20px;
  border: 2px solid rgb(243 213 135 / 0.9);
  border-radius: 50%;
  background: rgb(8 36 31 / 0.35);
  box-shadow: 0 0 18px rgb(243 213 135 / 0.48);
  transform: translate(-50%, 45%);
  pointer-events: none;
}

.game-person.is-done .game-person-ring,
.game-point.is-done .game-point-icon {
  border-color: #99d3b6;
  box-shadow: 0 0 0 5px rgb(137 219 165 / 0.16), 0 0 22px rgb(137 219 165 / 0.35);
}

.game-player {
  left: 50%;
  top: 79%;
  width: 126px;
  height: 148px;
  transform: translate(-50%, -100%);
  pointer-events: none;
  will-change: left, top;
}

.game-player-shadow {
  width: 75px;
  border-color: rgb(250 248 230 / 0.82);
  box-shadow: 0 0 21px rgb(250 248 230 / 0.3);
}

.game-player-name {
  background: #eee4c7;
  color: #193f38;
  border-color: #fff9e9;
}

.game-help,
.game-status {
  position: absolute;
  z-index: 7;
  left: 50%;
  max-width: min(530px, calc(100% - 30px));
  margin: 0;
  text-align: center;
  transform: translateX(-50%);
}

.game-help {
  top: 19px;
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  background: rgb(14 46 43 / 0.72);
  font-size: 0.7rem;
}

.game-status {
  bottom: 128px;
  min-width: min(430px, calc(100% - 28px));
  padding: 0.42rem 0.75rem;
  border: 1px solid rgb(255 249 229 / 0.35);
  border-radius: 999px;
  background: rgb(14 46 43 / 0.83);
  font-size: 0.76rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.game-controls {
  position: absolute;
  z-index: 8;
  inset: auto 20px 20px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  pointer-events: none;
}

.game-pad {
  position: relative;
  width: 132px;
  height: 132px;
  flex: 0 0 auto;
  border: 1px solid rgb(255 249 229 / 0.5);
  border-radius: 50%;
  background: rgb(16 48 43 / 0.73);
  backdrop-filter: blur(7px);
  pointer-events: auto;
}

.game-pad button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgb(255 249 229 / 0.48);
  border-radius: 11px;
  background: rgb(49 86 77 / 0.9);
  color: #fff9e9;
  font-size: 0.8rem;
  pointer-events: auto;
  touch-action: none;
}

.game-pad button:hover,
.game-pad button.is-held,
.game-action-interact:hover,
.game-dialog-primary:hover {
  background: #6c8e73;
}

.game-pad-up { top: 0; left: 44px; }
.game-pad-left { top: 44px; left: 0; }
.game-pad-right { top: 44px; right: 0; }
.game-pad-down { bottom: 0; left: 44px; }

.game-pad-core {
  position: absolute;
  top: 55px;
  left: 55px;
  width: 22px;
  height: 22px;
  border: 1px solid rgb(255 249 229 / 0.32);
  border-radius: 50%;
  background: rgb(229 218 187 / 0.22);
}

.game-actions {
  display: flex;
  align-items: end;
  gap: 0.7rem;
  pointer-events: auto;
}

.game-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  width: 98px;
  height: 98px;
  padding: 0.5rem;
  border: 2px solid #f1d490;
  border-radius: 50%;
  background: rgb(36 92 75 / 0.95);
  color: #fff9e9;
  box-shadow: 0 7px 0 rgb(12 47 42 / 0.68), 0 10px 22px rgb(11 37 34 / 0.38);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
}

.game-action > span:first-child {
  font: 1.7rem/1 Georgia, serif;
}

.game-action-meeting {
  width: 84px;
  height: 84px;
  border-color: #d9c9a5;
  background: rgb(65 81 71 / 0.92);
}

.game-action-meeting:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  filter: grayscale(0.45);
}

.game-action-meeting:not(:disabled):hover {
  background: #a67b4b;
}

.game-underbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  padding: 0.65rem 0.25rem;
  color: #4e665d;
  font-size: 0.72rem;
}

.game-underbar a {
  color: #7c563a;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.game-modal[hidden] { display: none !important; }

.game-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.game-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(10 32 30 / 0.67);
  backdrop-filter: blur(5px);
}

.game-dialog {
  position: relative;
  width: min(100%, 480px);
  max-height: min(85%, 650px);
  overflow-y: auto;
  padding: clamp(1.4rem, 4vw, 2rem);
  border: 2px solid #c2a467;
  border-radius: 17px;
  background: #f8f2e3;
  color: #263e37;
  box-shadow: 0 25px 64px rgb(8 29 27 / 0.42);
}

.game-dialog .game-dialog-kicker {
  color: #8a6d3e;
}

.game-dialog h2 {
  margin: 0.6rem 2rem 0.8rem 0;
  font-size: clamp(1.5rem, 5vw, 2rem);
}

.game-dialog p {
  margin-bottom: 0.8rem;
  color: #3f5a50;
  font-size: 0.94rem;
  line-height: 1.75;
}

.game-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #31564d;
}

.game-dialog-extra {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid #9a7b46;
  background: #ebe7d9;
  color: #31564d;
  font-size: 0.87rem;
  line-height: 1.7;
}

.game-dialog-extra:empty { display: none; }

.game-dialog-extra ul {
  margin: 0.2rem 0 0;
  padding-left: 1.2rem;
}

.game-dialog-extra li + li { margin-top: 0.4rem; }

.game-choice-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.game-choice {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  border: 1px solid #b6bea9;
  border-radius: 8px;
  background: #faf7ec;
  color: #29473e;
  text-align: left;
  font-size: 0.83rem;
  line-height: 1.4;
}

.game-choice:hover,
.game-choice[aria-pressed='true'] {
  border-color: #31564d;
  background: #dce8dc;
}

.game-dialog-extra p.game-choice-feedback {
  margin: 0.65rem 0 0;
  color: #31564d;
  font-size: 0.78rem;
}

.game-dialog-primary {
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  border: 1px solid #31564d;
  border-radius: 7px;
  background: #31564d;
  color: #fff9e9;
  font-size: 0.85rem;
  font-weight: 700;
}

.hero h2#hero-title {
  margin-bottom: 1.1rem;
  color: var(--jade-dark);
  font-size: clamp(2rem, 5vw, 4.4rem);
  letter-spacing: 0.045em;
}

@media (max-width: 780px) {
  .game-stage { height: clamp(570px, calc(100svh - 140px), 750px); }
  .game-help { top: auto; bottom: 136px; }
  .game-status { bottom: 172px; }
  .game-task { top: 76px; }
  .game-person { width: 110px; height: 128px; }
  .game-player { width: 112px; height: 136px; }
}

@media (max-width: 560px) {
  .site-header .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0.55rem 0;
    gap: 0.45rem;
  }

  .site-header .brand { grid-column: 1; grid-row: 1; }
  .site-header .brand-mark { width: 2rem; height: 2rem; }
  .site-header .brand-copy strong { font-size: 0.87rem; }
  .site-header .brand-copy small { font-size: 0.43rem; }
  .site-header .language-control { grid-column: 2; grid-row: 1; }
  .site-header .language-control label { display: none; }
  .site-header .language-control select { width: 5.6rem; min-height: 2.1rem; padding-left: 0.4rem; font-size: 0.69rem; }
  .site-header .primary-nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-around; padding-top: 0.35rem; gap: 0.25rem; }
  .site-header .primary-nav a { font-size: 0.7rem; }
  .hall-game { margin-top: 0.55rem; }
  .game-stage { height: clamp(530px, calc(100svh - 220px), 640px); border-radius: 12px; }
  .game-room { object-position: center 54%; }
  .game-head { inset: 12px 12px auto; gap: 0.35rem; }
  .game-seal { width: 32px; height: 32px; font-size: 1.1rem; }
  .game-identity { gap: 0.45rem; }
  .game-overline { font-size: 0.51rem; letter-spacing: 0.08em; }
  .game-identity h1 { font-size: 1.2rem; }
  .game-head-actions { gap: 0.35rem; }
  .game-demo-badge { padding: 0.28rem 0.4rem; font-size: 0.59rem; }
  .game-icon-button { width: 44px; height: 44px; }
  .game-task { top: 62px; left: 12px; width: min(226px, calc(100% - 24px)); padding: 0.5rem 0.65rem; }
  .game-task-label { font-size: 0.57rem; }
  .game-task strong { font-size: 0.74rem; }
  .game-task-progress { font-size: 0.79rem; }
  .game-person { width: 94px; height: 112px; }
  .game-person-artisan { left: 27%; top: 64%; }
  .game-person-nurse { left: 73%; top: 64%; }
  .game-player { width: 98px; height: 118px; }
  .game-point-issue { top: 50%; }
  .game-point-icon { width: 39px; height: 39px; font-size: 1.1rem; }
  .game-point-label, .game-person-name, .game-player-name { font-size: 0.61rem; padding: 0.18rem 0.4rem; }
  .game-controls { inset: auto 10px 13px; gap: 0.2rem; }
  .game-pad { width: 132px; height: 132px; }
  .game-pad button { width: 44px; height: 44px; border-radius: 10px; }
  .game-pad-up { top: 0; left: 44px; }
  .game-pad-left { top: 44px; left: 0; }
  .game-pad-right { top: 44px; right: 0; }
  .game-pad-down { bottom: 0; left: 44px; }
  .game-pad-core { top: 55px; left: 55px; width: 22px; height: 22px; }
  .game-action { width: 83px; height: 83px; font-size: 0.68rem; }
  .game-action > span:first-child { font-size: 1.4rem; }
  .game-action-meeting { width: 72px; height: 72px; }
  .game-actions { gap: 0.35rem; }
  .game-help { display: none; }
  .game-status { top: 134px; bottom: auto; width: calc(100% - 22px); min-width: 0; padding: 0.3rem 0.48rem; font-size: 0.67rem; }
  .game-underbar { font-size: 0.66rem; }
  .game-dialog { align-self: end; max-height: 83%; border-radius: 16px 16px 0 0; padding: 1.25rem; }
  .game-modal { padding: 0; }
  .hero h2#hero-title { font-size: clamp(2.2rem, 11vw, 3.8rem); }
}

@media (max-width: 360px) {
  .game-demo-badge { font-size: 0.54rem; }
  .game-overline { display: none; }
  .game-seal { width: 28px; height: 28px; }
  .game-identity h1 { font-size: 0.95rem; white-space: nowrap; }
  .game-person { width: 78px; height: 96px; }
  .game-person-artisan { left: 24%; }
  .game-person-nurse { left: 76%; }
  .game-actions { flex-direction: column; gap: 0.35rem; }
  .game-player { top: 66%; }
  .game-action { width: 73px; height: 73px; }
  .game-action-meeting { width: 67px; height: 67px; }
}

@media (prefers-reduced-motion: reduce) {
  .game-task-track span { transition: none; }
}

