* {
  box-sizing: border-box;
}

:root {
  --stone: #2b2924;
  --stone-light: #4b4338;
  --bone: #f3dfb6;
  --hide: #9a5933;
  --ember: #c9602c;
  --moss: #5f6b45;
  --ink: #201710;
}

html {
  min-height: 100%;
  background: #211b16;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--bone);
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at 18% 15%, rgba(185, 125, 70, 0.2), transparent 27rem),
    radial-gradient(circle at 82% 10%, rgba(95, 107, 69, 0.25), transparent 23rem),
    linear-gradient(115deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 23px),
    linear-gradient(25deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 29px),
    linear-gradient(180deg, #34291f 0%, #181410 100%);
}

a {
  color: #ffd889;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover,
a:focus {
  color: #ffffff;
}

.site-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.site-header {
  padding: 28px 0 16px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--bone);
  text-decoration: none;
}

.brand-symbol {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #201710;
  font-size: 28px;
  font-weight: 700;
  background:
    radial-gradient(circle at 30% 25%, #ffe2a3 0 12%, transparent 13%),
    linear-gradient(135deg, #b77442, #6b3f2d);
  border: 2px solid rgba(255, 225, 170, 0.35);
  border-radius: 52% 42% 48% 40%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.brand-text {
  display: grid;
  line-height: 1.05;
}

.brand-title {
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  letter-spacing: 0;
}

.brand-subtitle {
  margin-top: 4px;
  color: #d0b88d;
  font-size: 0.95rem;
}

.game-stage {
  position: relative;
  flex: 1;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 18px 0 26px;
}

.stone-frame {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(10px, 2vw, 18px);
  background:
    linear-gradient(145deg, rgba(255, 232, 181, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(0, 0, 0, 0.28), transparent 44%),
    #3e342b;
  border: 3px solid #6e563d;
  border-radius: 18px 13px 21px 15px;
  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.42),
    inset 0 0 0 2px rgba(255, 217, 142, 0.08);
}

#unity-container {
  position: relative;
}

#unity-container.unity-desktop {
  width: 960px;
  max-width: calc(100vw - 72px);
}

#unity-container.unity-mobile {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
}

#unity-canvas {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  background: #231f20;
  border: 2px solid rgba(255, 224, 165, 0.18);
  border-radius: 8px;
}

.unity-mobile #unity-canvas {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}

#unity-loading-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  padding: 18px;
  background: rgba(32, 23, 16, 0.88);
  border: 2px solid rgba(243, 223, 182, 0.3);
  border-radius: 10px;
}

#unity-logo {
  width: 154px;
  height: 130px;
  background: url("unity-logo-dark.png") no-repeat center;
}

#unity-progress-bar-empty {
  width: 141px;
  height: 18px;
  margin-top: 10px;
  margin-left: 6.5px;
  background: url("progress-bar-empty-dark.png") no-repeat center;
}

#unity-progress-bar-full {
  width: 0%;
  height: 18px;
  margin-top: 10px;
  background: url("progress-bar-full-dark.png") no-repeat center;
}

#unity-footer {
  position: relative;
  min-height: 38px;
  margin-top: 10px;
}

.unity-mobile #unity-footer {
  display: none;
}

#unity-webgl-logo {
  float: left;
  width: 204px;
  height: 38px;
  opacity: 0.85;
  background: url("webgl-logo.png") no-repeat center;
}

#unity-build-title {
  float: right;
  margin-right: 10px;
  line-height: 38px;
  color: #ecd1a1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

#unity-fullscreen-button {
  cursor: pointer;
  float: right;
  width: 38px;
  height: 38px;
  background: url("fullscreen-button.png") no-repeat center;
}

#unity-warning {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translate(-50%);
  max-width: min(90vw, 760px);
  background: #fff1c9;
  color: #24170d;
  padding: 10px;
  display: none;
  border-radius: 6px;
}

.intro-copy {
  width: min(960px, 100%);
  margin: 0 auto;
  color: #e7c994;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.55;
  text-align: center;
}

.intro-copy strong {
  color: #ffe1a0;
}

.content-panel {
  flex: 1;
  width: min(820px, 100%);
  margin: 14px auto 36px;
  padding: clamp(22px, 5vw, 42px);
  color: #f1dcad;
  line-height: 1.7;
  background:
    linear-gradient(135deg, rgba(255, 228, 174, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(25, 18, 12, 0.78), rgba(25, 18, 12, 0.54));
  border: 2px solid rgba(196, 139, 83, 0.45);
  border-radius: 18px 12px 20px 14px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.content-panel h1 {
  margin: 0 0 18px;
  color: #ffe0a0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: 0;
}

.content-panel h2 {
  margin: 30px 0 8px;
  color: #ffd184;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.content-panel p {
  margin: 0 0 14px;
}

.site-footer {
  margin-top: auto;
  padding: 18px 0 24px;
  color: #cbb58d;
  font-size: 0.95rem;
  text-align: center;
  border-top: 1px solid rgba(243, 223, 182, 0.22);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-bottom: 8px;
}

@media (max-width: 700px) {
  .site-shell {
    width: min(100% - 20px, 1120px);
  }

  .site-header {
    padding-top: 18px;
  }

  .brand-symbol {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }

  .stone-frame {
    padding: 8px;
    border-radius: 12px;
  }

  #unity-container.unity-desktop {
    max-width: calc(100vw - 36px);
  }

  #unity-webgl-logo {
    display: none;
  }
}
