:root {
  font-family: Georgia, 'Times New Roman', serif;
  color: #f7f1e7;
  background: #090909;
}
* { box-sizing: border-box; }
html, body, #app {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  background: #090909;
}
body { min-height: 100vh; }
button {
  font-family: Arial, Helvetica, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 18%, rgba(215, 173, 98, 0.08), transparent 30%),
    #090909;
}
.screen {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 520px;
  padding: max(32px, env(safe-area-inset-top)) 26px max(32px, env(safe-area-inset-bottom));
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.screen[hidden] { display: none; }
.brand { color: #d7ad62; }
.revel {
  font-size: 42px;
  letter-spacing: 0.22em;
  line-height: 1;
  padding-left: 0.22em;
}
.event {
  margin-top: 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  letter-spacing: 0.42em;
  padding-left: 0.42em;
}
.brand.small .revel { font-size: 28px; }
.brand.small .event { font-size: 10px; }
.gold-line {
  width: 46px;
  height: 1px;
  margin: 30px auto;
  background: #8e713e;
}
h1 {
  margin: 0 0 52px;
  font-size: clamp(24px, 7vw, 34px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.task {
  min-height: 210px;
  margin: 6px 0 28px;
  padding: 34px 24px;
  border: 1px solid #423722;
  border-radius: 18px;
  background: #12110f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(20px, 5.8vw, 27px);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.primary, .secondary {
  width: 100%;
  min-height: 56px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  touch-action: manipulation;
}
.primary {
  border: 1px solid #e9c981;
  background: #d7ad62;
  color: #16120c;
}
.secondary {
  margin-top: 12px;
  border: 1px solid #765f37;
  background: transparent;
  color: #d7ad62;
}
.end-screen {
  min-height: 100vh;
  min-height: 100dvh;
}
@media (min-width: 700px) {
  .screen { min-height: 720px; }
  .shell { padding: 32px; }
}
@media (max-height: 650px) {
  .screen {
    justify-content: flex-start;
    padding-top: max(28px, env(safe-area-inset-top));
  }
  .gold-line { margin: 20px auto; }
  .task {
    min-height: 160px;
    padding: 24px 20px;
  }
}
