/* 한 줄 세로 배치: 로고 → 상태 → 8석 카운터 → 오늘 예약. 노노라무 로고의 굵은 검정 선 + 노란 바탕 */
:root {
  --bg: #FFD633; --surface: #FFF6CC; --ink: #141414; --muted: #5C4E12; --line: #141414; --soft-line: #D9B21F;
  --accent: #141414; --accent-ink: #FFD633;
  --free: #11753D; --busy: #141414; --held: #E2560B; --stop: #C4211F; --ext: #1C4FD1;
  --display: "Do Hyeon", "IBM Plex Sans KR", system-ui, sans-serif;
  --body: "IBM Plex Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.55;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
[hidden] { display: none !important; }
.wrap {
  max-width: 560px; margin: 0 auto; padding-block: 20px 48px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex; flex-direction: column; gap: 22px;
}
.top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.shop { font-family: var(--display); font-weight: 400; font-size: 24px; margin: 0; }
.date { font-family: var(--mono); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.clock { color: var(--ink); }
.status { display: flex; flex-direction: column; gap: 4px; }
.status .label { font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.big { font-family: var(--display); font-size: clamp(44px, 13vw, 68px); line-height: 1; margin: 0; text-wrap: balance; }
.big.free { color: var(--free); } .big.full { color: var(--stop); } .big.closed { color: var(--muted); } .big.delay { color: var(--held); }
.sub { color: var(--muted); font-size: 14px; }
.updated { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.stale { color: var(--stop); font-size: 13px; }
.hours { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.pill { font-size: 11px; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.open { border-color: var(--free); color: var(--free); }
.pill.warn { border-color: var(--held); color: var(--held); }
.pill.ext { border-color: var(--ext); color: var(--ext); }
.notice { background: var(--surface); border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 14px; }

.counter { background: var(--surface); border: 2.5px solid var(--line); border-radius: 18px; box-shadow: 4px 4px 0 var(--line); padding: 18px 14px 14px; }
.stools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 10px; }
.stool { appearance: none; border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink); font: inherit; cursor: default; }
.stool .seat { width: 100%; max-width: 56px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 15px; border: 3px solid transparent; transition: background .2s, border-color .2s; }
.stool.empty .seat { border-color: var(--free); color: var(--free); }
.stool.busy .seat { background: var(--busy); color: var(--bg); border-color: var(--busy); }
.stool.held .seat { background: var(--held); color: #fff; border-color: var(--held); }
.stool .st { font-size: 11px; color: var(--muted); }
.bar { height: 10px; border-radius: 5px; background: var(--soft-line); margin-top: 12px; }
.dim .stool .seat { opacity: .35; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 10px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.dot.free { background: var(--free); } .dot.busy { background: var(--busy); } .dot.held { background: var(--held); }

h2 { font-family: var(--display); font-weight: 400; font-size: 19px; margin: 0 0 8px; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list li { display: grid; grid-template-columns: 62px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--soft-line); }
.list li:last-child { border-bottom: 1px solid var(--soft-line); }
.time { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.time small { display: block; font-size: 11px; color: var(--muted); }
.who { min-width: 0; overflow-wrap: anywhere; }
.who small { display: block; color: var(--muted); font-size: 12px; }
.empty-note { color: var(--muted); font-size: 14px; padding: 10px 0; border-top: 1px solid var(--soft-line); border-bottom: 1px solid var(--soft-line); }
.done { opacity: .45; text-decoration: line-through; }
.foot { font-size: 12px; color: var(--muted); }

/* 관리 화면 */
.panel { border-top: 2px dashed var(--soft-line); padding-top: 18px; display: flex; flex-direction: column; gap: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }
.chip { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.chip.saving { color: var(--held); border-color: var(--held); }
.chip.ok { color: var(--free); border-color: var(--free); }
.chip.err { color: var(--stop); border-color: var(--stop); }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.btn { appearance: none; font: inherit; font-size: 15px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; padding: 12px 10px; cursor: pointer; min-height: 48px; }
.btn:focus-visible, .stool:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn:active { transform: translate(1px, 1px); }
.btn.full.on { background: var(--stop); border-color: var(--line); color: #fff; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.btn.small { padding: 6px 10px; min-height: 36px; font-size: 13px; }
.btn.ghost { background: transparent; border-color: var(--soft-line); }
.btn:disabled { opacity: .5; cursor: default; }
.hint { font-size: 12px; color: var(--muted); margin: 0; }
.panel .stool, .tabpanel .stool { cursor: pointer; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); min-width: 0; }
label.wide, form.grid .btn, form.grid .wide { grid-column: 1 / -1; }
select, input, textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 2px solid var(--line); border-radius: 8px; padding: 9px 10px; min-width: 0; width: 100%; }
.res-actions { display: flex; gap: 6px; }
.box { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); }
.box-title { margin: 0; font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.remind { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 2.5px solid var(--held); background: var(--surface); font-size: 14px; }
.remind strong { color: var(--held); }
.admin { display: flex; flex-direction: column; gap: 16px; }
.admin-tag { font-family: var(--body); font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--accent-ink); background: var(--accent); padding: 3px 9px; border-radius: 999px; }
.mini-status { display: flex; flex-direction: column; gap: 6px; }
.mini-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.mini-big { font-size: clamp(32px, 9vw, 42px); }
.tabs {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px;
  background: var(--bg); padding-block: 8px; border-bottom: 2px solid var(--line);
}
.tab {
  appearance: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted);
  background: var(--surface); border: 2px solid var(--line); border-radius: 12px;
  min-height: 48px; padding: 6px 2px; font-size: 13px; cursor: pointer; position: relative; line-height: 1.25; word-break: keep-all;
}
.tab.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tab:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.tab-dot { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--held); border: 1.5px solid var(--ink); }
.pane { display: flex; flex-direction: column; gap: 20px; }
.big-seats .stools { gap: 10px; }
.big-seats .stool .seat { max-width: 64px; font-size: 18px; }
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 30px; }
input[type="checkbox"] { width: 22px; height: 22px; flex: none; accent-color: var(--ink); margin: 0; padding: 0; }
label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink); line-height: 1.45; }
.book { display: flex; flex-direction: column; gap: 14px; position: relative; }
.book h2 { margin: 0; }
.book-open { width: 100%; font-size: 17px; min-height: 56px; box-shadow: 4px 4px 0 var(--line); }
.mine { display: flex; flex-direction: column; gap: 10px; }
.pill.bad { border-color: var(--stop); color: var(--stop); }
.req-list { display: flex; flex-direction: column; gap: 10px; }
.req { gap: 6px; }
.req.pending { border-color: var(--held); border-width: 2.5px; }
.req .contact { font-family: var(--mono); font-size: 15px; user-select: all; overflow-wrap: anywhere; }
.req.done { opacity: .6; }
.login { max-width: 360px; margin: 12vh auto 0; display: flex; flex-direction: column; gap: 14px; }
.login input { font-family: var(--mono); font-size: 22px; letter-spacing: .3em; text-align: center; }
.error { color: var(--stop); font-size: 13px; margin: 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* 로고 */
.brand { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.brand-logo { width: min(220px, 62vw); height: auto; display: block; }
.brand .date { text-align: center; }
.admin-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.admin-logo { width: 56px; height: auto; display: block; }
.status { align-items: flex-start; }
.pill { background: var(--surface); }
.chip { border-width: 1.5px; }
.chip.ok { border-color: var(--free); color: var(--free); }
.updated, .sub, .hint, .legend, .date { color: var(--muted); }
.date { color: var(--ink); }
.big.closed { color: #4A4128; }

/* 메뉴판 */
.menu-box { background: var(--surface); border: 2.5px solid var(--line); border-radius: 18px; box-shadow: 4px 4px 0 var(--line); overflow: hidden; }
.menu-box summary { list-style: none; cursor: pointer; padding: 16px 18px; font-family: var(--display); font-size: 20px; display: flex; justify-content: space-between; align-items: center; }
.menu-box summary::-webkit-details-marker { display: none; }
.menu-box summary::after { content: "펼치기 ▾"; font-family: var(--body); font-size: 13px; color: var(--muted); }
.menu-box[open] summary::after { content: "접기 ▴"; }
.menu-box summary:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.menu-link { display: block; padding: 0 12px; }
.menu-link img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--soft-line); background: #fff; }
.menu-box .hint { padding: 8px 18px 14px; }

.brand-name { margin: 0; font-family: var(--display, "Do Hyeon", system-ui, sans-serif); font-weight: 400; font-size: 28px; line-height: 1.15; text-align: center; color: #141414; text-wrap: balance; }

.noshow { margin: 10px 0 0; padding: 10px 12px; border: 2px solid #C4211F; border-radius: 10px; background: #FFF6CC; color: #141414; font-size: 13px; line-height: 1.45; font-weight: 600; }
.list li.overdue { background: #FDE2DF; border-left: 4px solid #C4211F; padding-left: 8px; }
.btn.noshow-btn { background: #C4211F; border-color: #C4211F; color: #fff; font-weight: 600; }
.res-actions { flex-wrap: wrap; justify-content: flex-end; }

/* 실내 / 야장 구역 */
.area-title { margin: 0 0 10px; font-family: var(--display, "Do Hyeon", system-ui, sans-serif); font-size: 17px; color: #141414; }
.area-title small { font-family: var(--body, system-ui, sans-serif); font-size: 12px; color: #5C4E12; margin-left: 4px; }
.area-title.out { margin-top: 16px; padding-top: 14px; border-top: 2px dashed #D9B21F; }
.stools.off { opacity: .3; pointer-events: none; }
.counter .bar { margin-top: 12px; }

/* 오늘 예약 시간표 */
.tt-head { margin: 0 0 8px; font-size: 13px; color: #5C4E12; }
.tt { list-style: none; margin: 0; padding: 0; border: 2.5px solid #141414; border-radius: 14px; overflow: hidden; background: #FFF6CC; }
.tt-row { display: grid; grid-template-columns: 96px 1fr; align-items: center; min-height: 38px; border-top: 1px solid #E9D27A; }
.tt-row:first-child { border-top: 0; }
.tt-time { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 14px; font-variant-numeric: tabular-nums; padding: 6px 10px; border-right: 2px solid #141414; align-self: stretch; display: flex; align-items: center; gap: 3px; background: #FFE680; }
.tt-time small { font-family: inherit; font-size: 10px; white-space: nowrap; color: #5C4E12; }
.tt-slot { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 10px; align-items: center; }
.tt-free { font-size: 12px; color: #9C8A3A; }
.tt-chip { font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #E2560B; color: #fff; }
.tt-chip.rental { background: #141414; color: #FFD633; }
.tt-sum { font-size: 12px; color: #5C4E12; }
.tt-row.has .tt-time { background: #141414; color: #FFD633; }
.tt-row.has .tt-time small { color: #FFD633; }
.tt-row.rental .tt-slot { background: #FFE0CC; }
.tt-row.past { opacity: .4; }

/* 리뷰 인증 게시판 */
.rv-intro { margin: 0 0 10px; }
.rv-done { margin: 0 0 10px; padding: 10px 12px; border: 2px solid #141414; border-radius: 10px; background: #FFF6CC; font-weight: 600; font-size: 14px; }
.rv-form { margin-bottom: 12px; }
.rv-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.rv { border: 2px solid #141414; border-radius: 12px; background: #FFF6CC; padding: 10px 12px; display: grid; gap: 6px; }
.rv.served { background: #FFF9DD; }
.rv-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rv-nick { font-size: 15px; }
.rv-top .pill { margin-left: auto; }
.rv-plat { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: #141414; color: #FFD633; }
.rv-plat.dc { background: #3B4890; color: #fff; }
.rv-plat.x { background: #141414; color: #fff; }
.rv-msg { margin: 0; font-size: 14px; line-height: 1.45; word-break: break-word; }
.rv-bot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.rv-bot a { color: #141414; font-weight: 600; }
.rv-when { color: #5C4E12; font-size: 12px; font-variant-numeric: tabular-nums; }
.rv-more { margin-top: 8px; width: 100%; }
.rv-link { font-size: 12px; word-break: break-all; color: #141414; }

.arrive-note { margin: 0 0 8px; padding: 8px 12px; border: 2px solid #141414; border-radius: 10px; background: #FFF6CC; font-size: 13px; font-weight: 600; }

.limit { margin: 0; padding: 10px 12px; border: 2px solid #141414; border-radius: 10px; background: #FFF6CC; font-size: 13px; line-height: 1.45; font-weight: 600; }
.tt-row.closed .tt-free { color: #C4211F; font-weight: 600; }

.tt-chip.in { background: #8A7A3A; }

/* 팝업 광고 */
.pop-back { position: fixed; inset: 0; z-index: 50; background: rgba(20,20,20,.55); display: flex; align-items: center; justify-content: center; padding: 20px 16px; }
.pop { width: 100%; max-width: 380px; max-height: 100%; overflow: auto; background: #FFF6CC; border: 2.5px solid #141414; border-radius: 18px; box-shadow: 4px 4px 0 #141414; display: flex; flex-direction: column; }
.pop-img { display: block; width: 100%; height: auto; border-bottom: 2px solid #141414; }
.pop-body { padding: 14px 16px 6px; }
.pop-title { margin: 0 0 6px; font-family: "Do Hyeon", system-ui, sans-serif; font-size: 22px; color: #141414; }
.pop-text { margin: 0; font-size: 14px; line-height: 1.5; white-space: pre-line; color: #141414; }
.pop-btns { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid #141414; margin-top: 10px; }
.pop-btns button { appearance: none; border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600; min-height: 48px; cursor: pointer; color: #141414; }
.pop-btns .pop-hide { border-right: 2px solid #141414; color: #5C4E12; font-weight: 400; }
.pop-prev { position: static; background: transparent; padding: 0; }
.pop-prev .pop { box-shadow: none; }
textarea { resize: vertical; line-height: 1.5; }

.conflict-note { margin: 4px 0 0; font-size: 13px; font-weight: 600; color: #C4211F; }

.change-req { padding: 8px 10px; border: 2px dashed #E2560B; border-radius: 10px; background: #FFF0E0; font-size: 14px; line-height: 1.5; }
.mine-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.mine-change { margin-top: 8px; }

.contact-line { margin: 0; padding: 10px 12px; border: 2px solid #141414; border-radius: 10px; background: #FFF6CC; font-size: 13px; line-height: 1.5; font-weight: 600; }
.contact-line a { color: #141414; text-decoration: underline; text-underline-offset: 2px; }
.mine .contact-line { margin-top: 8px; }

.mon-list { display: grid; gap: 8px; margin: 8px 0; }
.mon-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; }
