/* The application source is intentionally buildless. */
:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic",
    sans-serif;
  color: #263e32;
  background: #f7f5ed;
  --ink: #263e32;
  --muted: #7e887b;
  --line: #dddfd2;
  --gold: #ebc75e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
button,
input,
select,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid #cc6f4e;
  outline-offset: 4px;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
svg {
  display: block;
}
[hidden] {
  display: none !important;
}
.site-shell {
  max-width: 1440px;
  padding: 0 48px;
  margin: auto;
}
.site-header {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -1px;
}
.brand > span:last-child {
  color: #cb7051;
  margin-left: -5px;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #f5d67c;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  font-size: 28px;
  margin-right: 6px;
}
.header-note {
  font-size: 9px;
  letter-spacing: 2px;
  color: #8c9585;
}
.manage-button {
  border: 1px solid #aeb9a5;
  padding: 11px 16px;
  border-radius: 30px;
  background: transparent;
  min-height: 44px;
  font-size: 12px;
  font-weight: 600;
}
.manage-button span {
  margin-left: 18px;
}
.manage-button:hover {
  background: #ecefdf;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 45px 0 36px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.2px;
  font-weight: 700;
  color: #7c8c70;
}
.intro h1 {
  font-size: 53px;
  line-height: 1.22;
  letter-spacing: -2.8px;
  margin-top: 17px;
  position: relative;
}
.intro em {
  font-style: normal;
  color: #b96846;
}
.intro-star {
  position: absolute;
  font-size: 65px;
  color: #d4ad4f;
  top: 0;
  right: -100px;
  transform: rotate(-15deg);
}
.intro-side {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 15px;
  color: #78856e;
  margin-right: 36px;
}
.intro-side p {
  font-size: 13px;
  line-height: 1.9;
}
.intro-doodle {
  font-size: 56px;
  transform: rotate(-12deg);
}
.catalog-badge {
  grid-column: 1/-1;
  border: 1px solid #daddca;
  border-radius: 30px;
  padding: 8px 15px;
  font-size: 10px;
  letter-spacing: 0.4px;
  text-align: center;
}
.roulette-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 230px;
  gap: 30px;
  padding: 27px 0 40px;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #8b987e;
}
.selection-panel {
  padding-top: 15px;
}
.selection-panel h2 {
  font-size: 26px;
  letter-spacing: -1.2px;
  line-height: 1.4;
  margin-top: 15px;
}
.section-description {
  font-size: 12px;
  color: #8a927f;
  margin: 12px 0;
}
.text-button {
  font-size: 11px;
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: #7c8970;
  min-height: 44px;
  padding: 10px 0;
}
.category-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 5px;
}
.category-card {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  border: 1px solid #dce0d0;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fbfcf5;
  cursor: pointer;
}
.category-card:has(input:checked) {
  background: #edf0e3;
  border-color: #b0bca1;
}
.category-card:has(input:disabled) {
  cursor: wait;
  opacity: 0.6;
}
.category-card input {
  accent-color: var(--ink);
  width: 17px;
  min-height: 0;
  height: 17px;
  margin: 0;
  flex-shrink: 0;
}
.category-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.category-name {
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.category-count {
  margin-left: auto;
  font-size: 10px;
  color: #859278;
}
.selection-summary {
  font-size: 10px;
  line-height: 1.8;
  margin-top: 17px;
  color: #7b896c;
}
.selection-summary > span:first-child {
  font-size: 6px;
  margin-right: 5px;
}
.selection-tip {
  border-top: 1px dashed #d5dac9;
  margin-top: 24px;
  padding-top: 20px;
  display: flex;
  gap: 10px;
  color: #8a947e;
}
.selection-tip > span {
  font-size: 23px;
}
.selection-tip p {
  font-size: 11px;
  line-height: 1.9;
}
.selection-tip b {
  font-weight: 600;
  color: #637456;
}
.wheel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3px;
}
.wheel-heading h2 {
  font-size: 12px;
  font-weight: 500;
  color: #78886c;
}
.wheel-heading .step-label {
  margin-right: 12px;
}
.wheel-stage {
  position: relative;
  max-width: 650px;
  aspect-ratio: 1;
  margin: 15px auto 0;
  padding: 9px;
  border-radius: 50%;
  background: #fdfaf0;
  box-shadow:
    0 0 0 1px #dfdfcb,
    0 14px 32px #263e3212;
  border: 6px solid var(--ink);
}
.wheel-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.wheel-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 34%;
  height: 34%;
  border: 7px solid #fff8e9;
  outline: 1px solid #d6cda7;
  border-radius: 50%;
  background: var(--ink);
  color: #faf5df;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 5px 8px #23352833;
  pointer-events: none;
}
.wheel-hub > span {
  font-size: clamp(6px, 0.65vw, 10px);
  letter-spacing: 2px;
  color: #bdc8a5;
}
.wheel-hub strong {
  font-size: clamp(20px, 2.3vw, 36px);
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 7px 0;
}
.wheel-hub strong span {
  color: var(--gold);
}
.wheel-hub i {
  font-size: 23px;
  color: var(--gold);
  line-height: 1;
  font-style: normal;
}
.wheel-pointer {
  position: absolute;
  left: 50%;
  top: -18px;
  z-index: 2;
  width: 31px;
  height: 43px;
  background: #bf613e;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 50% 100%, 0 40%);
  transform: translateX(-50%);
  filter: drop-shadow(0 2px 3px #253d3244);
}
.wheel-orbit {
  position: absolute;
  font-size: 35px;
  color: #b9a262;
  pointer-events: none;
}
.orbit-one {
  left: -26px;
  top: 15%;
}
.orbit-two {
  right: -28px;
  bottom: 11%;
  font-size: 24px;
}
.wheel-empty {
  position: absolute;
  inset: 15px;
  background: #e9ecdf;
  border-radius: 50%;
  text-align: center;
  padding: 20% 10px;
  color: #6a7a5e;
  font-size: 16px;
  z-index: 1;
  line-height: 1.8;
}
.wheel-empty span {
  font-size: 11px;
}
.pointer-reader {
  display: grid;
  grid-template-columns: 1fr 2.1fr 1fr;
  align-items: center;
  text-align: center;
  min-height: 95px;
  margin: 22px 0 17px;
  border: 1px solid #d9ddcd;
  border-radius: 14px;
  background: #fafbf3;
  overflow: hidden;
}
.pointer-current {
  background: #ecefdc;
  min-height: 95px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 7px;
  gap: 7px;
  border-inline: 1px solid #d9ddcd;
  min-width: 0;
}
.pointer-current small {
  font-size: 9px;
  color: #8a8064;
  letter-spacing: 0.4px;
}
.pointer-current strong {
  font-size: 19px;
  letter-spacing: -0.5px;
  overflow-wrap: anywhere;
}
.pointer-current > span {
  font-size: 9px;
  color: #839171;
}
.neighbor {
  font-size: 11px;
  color: #9aa28d;
  overflow-wrap: anywhere;
  padding: 10px;
  min-width: 0;
}
.draw-button {
  width: 100%;
  min-height: 60px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: #fff9e5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 22px;
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 5px 0 #d7dcc8;
}
.draw-button > span:first-child {
  font-size: 27px;
  color: var(--gold);
  line-height: 1;
}
.draw-button:hover {
  background: #375542;
}
.draw-button:active {
  transform: translateY(2px);
}
.draw-hint {
  font-size: 10px;
  color: #8b947f;
  text-align: center;
  margin-top: 17px;
  line-height: 1.7;
}
.wheel-explanation {
  font-size: 10px;
  line-height: 1.8;
  color: #949c88;
  text-align: center;
  margin-top: 9px;
}
.result-panel {
  padding-top: 15px;
}
.result-card {
  background: #efdfb1;
  border: 1px solid #e4d09c;
  border-radius: 115px 115px 16px 16px;
  padding: 35px 21px 25px;
  min-height: 360px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 25px;
  position: relative;
}
.result-ticket {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #998051;
}
.result-art {
  font-size: 62px;
  margin: 23px 0;
}
.result-category {
  background: #e6ce93;
  color: #836a3f;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
}
.result-card h2 {
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: -1.2px;
  margin-top: 15px;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.result-card p {
  font-size: 11px;
  color: #9c865b;
  line-height: 1.8;
  margin-top: 13px;
}
.result-spark {
  margin-top: 20px;
  font-size: 27px;
  color: #b68f43;
}
.result-card.has-result {
  background: #f1d681;
}
.has-result .result-art {
  animation: pop 0.3s ease-out;
}
.result-footnote {
  font-size: 11px;
  color: #9da18f;
  line-height: 1.9;
  margin: 25px 5px;
}
.candidate-section {
  padding: 30px 0 32px;
  border-top: 1px solid var(--line);
}
.candidate-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.candidate-heading h2 {
  font-size: 21px;
  letter-spacing: -0.6px;
  margin-top: 9px;
}
.candidate-heading h2 span {
  color: #b16d43;
  font-size: 17px;
  margin-left: 5px;
}
.search-label {
  width: 250px;
}
.search-label input {
  font-size: 12px;
  border-radius: 30px;
  background: transparent;
  padding: 12px 16px;
}
.candidate-note {
  font-size: 11px;
  line-height: 1.7;
  color: #8e9782;
  margin-top: 12px;
}
.candidate-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  gap: 0 26px;
  margin: 20px 0 0;
  max-height: 280px;
  overflow: auto;
  overscroll-behavior: contain;
}
.candidate-item {
  border-bottom: 1px solid #e1e3d7;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 0;
  font-size: 12px;
  min-width: 0;
}
.candidate-number {
  font-size: 9px;
  color: #a7ad9b;
}
.candidate-item strong {
  font-weight: 500;
  overflow-wrap: anywhere;
}
.candidate-category {
  font-size: 9px;
  color: #95a085;
  margin-left: auto;
  flex-shrink: 0;
}
.storage-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  color: #8f9982;
  font-size: 10px;
  line-height: 1.8;
}
.storage-line b {
  font-weight: 600;
  color: #6d7d60;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #a0a691;
}
.site-footer > span:last-child {
  font-size: 8px;
  letter-spacing: 1.3px;
}
.site-footer b {
  color: #718362;
  margin-left: 4px;
}
.catalog-offer {
  display: flex;
  align-items: center;
  gap: 25px;
  background: #e7ecdc;
  padding: 18px 22px;
  border-radius: 12px;
  margin-bottom: 24px;
}
.catalog-offer strong {
  font-size: 14px;
}
.catalog-offer p {
  font-size: 11px;
  line-height: 1.8;
  color: #7a886a;
  margin-top: 7px;
}
.catalog-offer button {
  border: 1px solid #a1b08d;
  border-radius: 8px;
  background: #fafcf0;
  min-height: 46px;
  padding: 10px 17px;
  white-space: nowrap;
  font-size: 12px;
}
.catalog-feedback {
  font-size: 12px;
  margin-bottom: 12px;
  color: #718362;
}
.catalog-feedback:empty {
  display: none;
}
.form-message {
  color: #ae4e32;
  font-size: 12px;
  line-height: 1.7;
  margin: 10px 0;
}
.form-message:empty {
  display: none;
}
.storage-warning {
  padding: 15px 20px;
  border-radius: 10px;
  background: #fff0cd;
  font-size: 12px;
  line-height: 1.8;
  color: #875e31;
  margin-bottom: 25px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 10px;
  background: #fff;
  padding: 12px;
  z-index: 10;
}
.skip-link:focus {
  top: 10px;
}
.empty-message {
  font-size: 12px;
  color: #879178;
  line-height: 1.8;
}
.menu-group .menu-group-title {
  font-size: 12px;
  color: #788366;
  margin: 20px 0 10px;
}
@keyframes pop {
  from {
    transform: scale(0.8);
  }
  to {
    transform: scale(1);
  }
}
dialog {
  padding: 0;
  border: 1px solid #e7e1d4;
  border-radius: 20px;
  background: #fffdf8;
  color: #35362e;
  width: min(690px, calc(100% - 32px));
  max-height: 88dvh;
  box-shadow: 0 30px 100px #332d2433;
}
dialog::backdrop {
  background: #35362e66;
  backdrop-filter: blur(4px);
}
.dialog-header {
  padding: 25px 28px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fffdf8;
  z-index: 1;
}
.dialog-header h2 {
  font-size: 23px;
  letter-spacing: -0.8px;
  margin-top: 5px;
}
.dialog-body {
  padding: 22px 28px 28px;
}
.local-notice {
  font-size: 12px;
  color: #737964;
  line-height: 1.8;
  padding: 14px;
  background: #f1f3e9;
  border-radius: 10px;
  margin-bottom: 24px;
}
.manager-section h3 {
  font-size: 15px;
  margin-bottom: 14px;
}
.menu-form-fields {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 10px;
  align-items: end;
}
label {
  display: block;
  font-size: 11px;
  color: #777d69;
  font-weight: 500;
}
input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #dcded2;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  font-size: 13px;
  color: #35362e;
  margin-top: 6px;
}
input::placeholder {
  color: #a1a493;
}
.small-primary {
  background: #758565;
  border: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  min-height: 44px;
  padding: 10px 15px;
  border-radius: 8px;
  white-space: nowrap;
}
.small-primary:hover {
  background: #617251;
}
.category-settings {
  margin: 23px 0 27px;
  border-block: 1px solid var(--line);
  font-size: 12px;
}
.category-settings summary {
  padding: 15px 0;
  cursor: pointer;
  color: #737b64;
  font-weight: 500;
  min-height: 48px;
}
.category-settings-content {
  padding: 0 0 18px;
}
.inline-form {
  display: flex;
  gap: 10px;
  align-items: end;
}
.managed-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.managed-category {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #f0f0e6;
  border-radius: 8px;
  padding: 0 0 0 10px;
  font-size: 12px;
}
.icon-button {
  background: transparent;
  border: 0;
  min-width: 44px;
  min-height: 44px;
  font-size: 19px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #969986;
}
.icon-button:hover {
  background: #f5e7dd;
  color: #ba4c36;
}
.close-button {
  font-size: 29px;
}
.menu-group {
  margin: 19px 0;
}
.menu-group h4,
#menu-list h4 {
  font-size: 12px;
  color: #788366;
  margin: 20px 0 9px;
}
.menu-group-items,
.menu-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.menu-item {
  display: inline-flex;
  align-items: center;
  background: #f6f4ed;
  border: 1px solid #e9e7dd;
  border-radius: 8px;
  font-size: 12px;
  margin: 0 6px 7px 0;
  padding-left: 12px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.menu-item > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.menu-item .icon-button {
  font-size: 17px;
  margin-left: 3px;
}
.empty-list {
  font-size: 12px;
  color: #969986;
  padding: 15px 0;
}
.reset-row {
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 20px;
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
}
.reset-row strong {
  font-size: 12px;
  font-weight: 600;
}
.reset-row p {
  font-size: 10px;
  color: #969986;
  margin-top: 5px;
  line-height: 1.8;
}
.reset-button {
  font-size: 11px;
  padding: 10px 12px;
  min-height: 44px;
  background: transparent;
  border: 1px solid #dcd9cd;
  border-radius: 8px;
  white-space: nowrap;
  color: #8d7963;
}

.zoom-dialog {
  width: min(1100px, 95vw);
  max-height: 92dvh;
}
.zoom-dialog .dialog-header p {
  font-size: 11px;
  line-height: 1.8;
  color: #8b947f;
  margin-top: 7px;
}
.zoom-scroll {
  height: 65dvh;
  overflow: auto;
  background: #f8f5e9;
}
.zoom-scroll svg {
  width: 2400px;
  height: 2400px;
  padding: 20px;
}
.zoom-scroll svg text {
  font-size: 7px;
}
.zoom-scroll svg g[data-count] {
  outline: none;
}
@media (min-width: 1600px) {
  .site-shell {
    max-width: 1500px;
  }
  .roulette-layout {
    grid-template-columns: 220px minmax(0, 1fr) 250px;
    gap: 40px;
  }
}
@media (max-width: 1100px) {
  .site-shell {
    padding: 0 28px;
  }
  .roulette-layout {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 25px;
  }
  .result-panel {
    grid-column: 2;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    padding: 0;
  }
  .result-panel > .step-label {
    grid-column: 1/-1;
  }
  .result-card {
    border-radius: 14px;
    margin: 0;
    min-height: 0;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 20px;
    text-align: left;
  }
  .result-ticket,
  .result-spark {
    display: none;
  }
  .result-art {
    grid-row: 1/4;
    font-size: 48px;
    margin: 0;
  }
  .result-category {
    justify-self: start;
  }
  .result-card h2 {
    font-size: 24px;
    margin: 0;
  }
  .result-card p {
    margin: 0;
  }
  .result-panel {
    display: block;
  }
  .result-panel > .step-label {
    display: block;
    margin-bottom: 10px;
  }
  .result-footnote {
    display: none;
  }
  .intro h1 {
    font-size: 46px;
  }
  .candidate-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .header-note {
    display: none;
  }
  .wheel-hub strong {
    font-size: 30px;
  }
  .wheel-hub > span {
    font-size: 9px;
  }
}
@media (max-width: 700px) {
  .site-shell {
    padding: 0 20px;
  }
  .site-header {
    height: 80px;
  }
  .brand {
    font-size: 18px;
  }
  .brand-mark {
    height: 31px;
    width: 31px;
    font-size: 24px;
  }
  .manage-button {
    font-size: 11px;
    padding: 10px 13px;
  }
  .manage-button span {
    margin-left: 8px;
  }
  .intro {
    padding: 29px 0 26px;
  }
  .intro h1 {
    font-size: 38px;
    letter-spacing: -2px;
    margin-top: 13px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.4px;
  }
  .intro-star {
    font-size: 44px;
    right: -60px;
    top: 10px;
  }
  .intro-side {
    display: none;
  }
  .roulette-layout {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px 0 30px;
  }
  .selection-panel {
    padding: 0;
    position: relative;
  }
  .selection-panel h2 {
    font-size: 22px;
    margin-top: 9px;
  }
  .selection-panel h2 br {
    display: none;
  }
  .section-description {
    font-size: 11px;
    margin: 8px 0 14px;
  }
  .selection-panel > .text-button {
    position: absolute;
    right: 0;
    top: 27px;
  }
  .category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin: 0;
  }
  .category-card {
    padding: 9px 6px;
    gap: 5px;
    min-height: 49px;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 8px;
  }
  .category-card input {
    width: 14px;
    height: 14px;
  }
  .category-dot {
    display: none;
  }
  .category-name {
    font-size: 12px;
  }
  .category-count {
    font-size: 9px;
    margin-left: 0;
  }
  .selection-summary {
    margin-top: 12px;
    font-size: 10px;
  }
  .selection-tip {
    display: none;
  }
  .wheel-heading h2 {
    font-size: 11px;
  }
  .wheel-heading .step-label {
    margin-right: 8px;
    font-size: 9px;
  }
  .wheel-stage {
    margin-top: 16px;
    border-width: 5px;
    padding: 6px;
    max-width: 500px;
  }
  .wheel-hub {
    border-width: 5px;
  }
  .wheel-hub strong {
    font-size: clamp(20px, 5.5vw, 30px);
    margin: 6px 0;
  }
  .wheel-hub > span {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .wheel-hub i {
    font-size: 19px;
  }
  .wheel-pointer {
    width: 24px;
    height: 34px;
    top: -15px;
  }
  .orbit-one {
    left: -13px;
    font-size: 23px;
  }
  .orbit-two {
    right: -14px;
    font-size: 19px;
  }
  .pointer-reader {
    margin-top: 19px;
    min-height: 92px;
    grid-template-columns: 1fr 2.3fr 1fr;
  }
  .pointer-current {
    min-height: 92px;
  }
  .pointer-current strong {
    font-size: 18px;
  }
  .pointer-current small {
    font-size: 8px;
  }
  .neighbor {
    font-size: 10px;
    padding: 7px;
  }
  .draw-button {
    min-height: 59px;
    font-size: 16px;
  }
  .draw-hint {
    font-size: 9px;
    margin-top: 15px;
  }
  .wheel-explanation {
    font-size: 9px;
  }
  .result-panel {
    grid-column: 1;
  }
  .result-card {
    padding: 18px 20px;
    gap: 9px 14px;
  }
  .result-card h2 {
    font-size: 24px;
  }
  .result-card p {
    font-size: 10px;
  }
  .result-art {
    font-size: 44px;
  }
  .candidate-section {
    padding: 25px 0;
  }
  .candidate-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
  .candidate-heading h2 {
    font-size: 21px;
  }
  .search-label {
    width: 100%;
  }
  .search-label input {
    margin: 0;
    min-height: 44px;
  }
  .candidate-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
    max-height: 260px;
  }
  .candidate-item {
    font-size: 11px;
    gap: 7px;
    padding: 13px 0;
  }
  .candidate-number {
    font-size: 8px;
  }
  .candidate-category {
    font-size: 8px;
  }
  .candidate-note {
    font-size: 10px;
  }
  .storage-line {
    flex-direction: column;
    gap: 9px;
    font-size: 9px;
  }
  .site-footer {
    font-size: 9px;
    padding: 22px 0;
    gap: 12px;
  }
  .site-footer > span:last-child {
    font-size: 7px;
    letter-spacing: 0.7px;
  }
  .dialog-header {
    padding: 19px 20px 16px;
  }
  .dialog-body {
    padding: 18px 20px 22px;
  }
  .menu-form-fields {
    grid-template-columns: 1fr 1fr;
  }
  .menu-form-fields > .small-primary {
    grid-column: 1/-1;
  }
  .reset-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .local-notice {
    font-size: 11px;
  }
  .catalog-offer {
    flex-direction: column;
    gap: 15px;
    padding: 18px;
    align-items: stretch;
  }
  .catalog-offer strong {
    font-size: 13px;
  }
  .zoom-scroll {
    height: 70dvh;
  }
}
@media (max-width: 370px) {
  .site-shell {
    padding: 0 14px;
  }
  .intro h1 {
    font-size: 34px;
  }
  .intro-star {
    font-size: 35px;
    right: -40px;
  }
  .category-card {
    gap: 4px;
  }
  .category-name {
    font-size: 11px;
  }
  .category-count {
    font-size: 8px;
  }
  .candidate-list {
    column-gap: 10px;
  }
  .candidate-category {
    display: none;
  }
  .site-footer {
    flex-direction: column;
  }
  .brand {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.app-status {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid #d6d8c3;
  border-radius: 12px;
  background: #fff0ce;
  font-size: 13px;
  line-height: 1.8;
}
.app-status button {
  margin-top: 12px;
  border: 1px solid #acb393;
  background: #fffdf4;
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 14px;
}
.catalog-version-note {
  border-top: 1px solid var(--line);
  padding: 15px 0;
  color: #7c8970;
  font-size: 11px;
  line-height: 1.9;
}
@media (max-width: 700px) {
  .catalog-version-note {
    font-size: 10px;
  }
}
