*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #8fb6a0;
  color: #3a2b22;
  font-family: ui-rounded, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

button,
select {
  font: inherit;
}

.shell {
  width: min(100vw, 980px);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 640px) 300px;
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.game-wrap {
  overflow: hidden;
  border: 4px solid #fff3cf;
  border-radius: 8px;
  background: #f6e0b8;
  box-shadow: 0 24px 70px rgba(49, 45, 35, 0.22);
}

#game {
  width: 100%;
  aspect-ratio: 4 / 5;
}

#game canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.panel {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
  border: 4px solid #fff3cf;
  border-radius: 8px;
  background: #fff8e8;
  box-shadow: 0 18px 50px rgba(49, 45, 35, 0.16);
}

.brand,
.stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand span {
  font-size: 24px;
  font-weight: 900;
}

.brand strong,
.stat strong {
  color: #2f7f59;
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
}

select,
button {
  width: 100%;
  min-height: 42px;
  border-radius: 7px;
}

select {
  border: 2px solid #dac28f;
  background: #fffdf5;
  color: #3a2b22;
  padding: 0 10px;
}

button {
  border: 0;
  background: #f0b94d;
  color: #4c310e;
  font-weight: 900;
  cursor: pointer;
}

button:disabled {
  background: #d8d0bf;
  color: #776d5d;
  cursor: default;
}

.notice {
  min-height: 54px;
  padding: 12px;
  border-radius: 7px;
  background: #e7f2df;
  line-height: 1.5;
}

.album h2,
.feature-guide h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.feature-guide ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-guide li {
  display: grid;
  gap: 2px;
  padding: 8px;
  border-radius: 6px;
  background: #f4edd7;
  border: 1px solid #e3d0a7;
}

.feature-guide strong {
  color: #2f7f59;
  font-size: 13px;
}

.feature-guide span {
  font-size: 12px;
  line-height: 1.35;
}

.album-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.card {
  min-height: 54px;
  padding: 8px;
  border-radius: 6px;
  background: #f7e7bd;
  border: 2px solid #e1c37c;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 760px) {
  .shell {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .panel {
    order: 2;
  }
}
