/* Scribble Chain: a cork-and-walnut studio table; sketchbook pages in cream paper. */
body[data-game="scribble"] #felt { background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(255, 235, 200, .08), transparent 70%), radial-gradient(ellipse 120% 100% at 50% 50%, #3a2d22 0%, #261d16 55%, #0f0b08 100%); }
body[data-game="scribble"] #print, body[data-game="scribble"] .fan, body[data-game="scribble"] .sizer { display: none; }

#scribble { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; z-index: 2; }
.sc-status { display: flex; flex-direction: column; align-items: center; gap: 1.4vmin; }
.sc-status:empty { display: none; }
.sc-step { margin: 0; font-family: var(--ui); font-size: 1.6vmin; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-ink); }
.sc-status h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 5vmin; color: var(--ivory); white-space: nowrap; }
.sc-clock { font-family: var(--num); font-weight: 400; font-size: 7vmin; color: var(--champagne-hi); }
.sc-who { display: flex; flex-wrap: wrap; justify-content: center; gap: 1vmin; max-width: 70vmin; }
.sc-who span { display: inline-flex; align-items: center; gap: .6em; padding: .5vmin 1.4vmin; border-radius: 99px; font-family: var(--ui); font-size: 1.7vmin; color: var(--mute); background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 .14vmin var(--hairline); }
.sc-who span.on { color: var(--ivory); box-shadow: inset 0 0 0 .14vmin rgba(159, 196, 154, .7); }
.sc-who span.on::after { content: '✓'; color: #9fc49a; }
.sc-who i { width: 1.1vmin; height: 1.1vmin; border-radius: 50%; }
.sc-book { width: var(--W, 600px); }
.sc-book:empty { display: none; }
.sc-book header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2vmin; }
.sc-book header b { font-family: var(--display); font-weight: 600; font-size: 3.4vmin; color: var(--ivory); }
.sc-book header span { display: flex; gap: .8vmin; }
.sc-book header i { width: 1.2vmin; height: 1.2vmin; border-radius: 50%; background: rgba(205, 180, 135, .25); }
.sc-book header i.past { background: rgba(205, 180, 135, .55); }
.sc-book header i.on { background: var(--champagne); box-shadow: 0 0 0 .3vmin rgba(227, 207, 159, .3); }
.sc-page { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 1vmin; background: repeating-linear-gradient(0deg, rgba(120, 100, 60, .05) 0 1px, transparent 1px 3.2vmin), linear-gradient(170deg, #fdf9ef, #f1e8d4); box-shadow: 0 2.4vmin 6vmin rgba(0, 0, 0, .55), inset 0 0 0 .14vmin rgba(120, 100, 60, .2); animation: scTurn .45s cubic-bezier(.2, .9, .3, 1.05); }
@keyframes scTurn { from { transform: perspective(1200px) rotateY(-24deg); opacity: .3; } }
.sc-page canvas { display: block; }
.sc-page p { margin: 0; padding: 0 6%; text-align: center; color: #2a2320; }
.sc-page p.word { font-family: var(--display); font-weight: 600; font-size: 7vmin; }
.sc-page p.guess { font-family: var(--serif); font-style: italic; font-size: 6vmin; }
.sc-page p em { color: #8a7d68; font-size: .7em; }
.sc-book footer { display: flex; align-items: center; justify-content: center; gap: 1vmin; margin-top: 1.4vmin; font-family: var(--serif); font-style: italic; font-size: 2.3vmin; color: var(--gold-ink); }
.sc-book footer b { font-style: normal; font-family: var(--display); font-weight: 600; color: var(--ivory); }
.sc-book footer .tool { margin-left: 2vmin; }
.sc-drift li { font-size: 1.9vmin; }

/* ---------- phone ---------- */
body[data-game="scribble"] { background: linear-gradient(180deg, #2f241b, #0f0b08); }
body[data-game="scribble"] #handWrap, body[data-game="scribble"] #handHint { display: none; }
body[data-game="scribble"] #status { flex: none; min-height: 0; margin: 8px 0 6px; }
#scPhone { width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 1; min-height: 0; overflow-y: auto; }
#scPhone > * { flex: none; }
.sc-prompt { padding: 8px 16px; border-radius: 99px; background: var(--stock); color: #2a2320; font-family: var(--display); font-weight: 600; font-size: 22px; }
.sc-paper { border-radius: 8px; overflow: hidden; background: linear-gradient(170deg, #fdf9ef, #f1e8d4); box-shadow: 0 8px 22px rgba(0, 0, 0, .5); touch-action: none; }
.sc-paper canvas { display: block; touch-action: none; }
.sc-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.sc-tools button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .2); cursor: pointer; display: grid; place-items: center; color: var(--ivory); background: rgba(255, 248, 230, .08); font-size: 16px; }
.sc-tools button.on { border-color: var(--champagne); box-shadow: 0 0 0 2px var(--champagne); }
.sc-tools button.size i { display: block; border-radius: 50%; background: var(--ivory); }
.sc-time { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--gold-ink); align-self: center; }
.sc-time b { font-style: normal; font-family: var(--num); font-weight: 400; color: var(--ivory); font-size: 18px; }
.sc-input { width: 100%; max-width: 380px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--hairline-hi); background: rgba(255, 248, 230, .06); color: var(--ivory); font-family: var(--serif); font-size: 22px; outline: none; }
.sc-words { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 340px; margin-top: 10px; }
.sc-words .panel-btn { font-family: var(--display); font-weight: 600; font-size: 22px; padding: 16px; }
.sc-wait { margin-top: 30px; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--gold-ink); }
.sc-nav { display: flex; justify-content: center; gap: 1.4vmin; margin-top: 1.4vmin; }
.sc-nav .tool[disabled], .sc-navp .panel-btn[disabled] { opacity: .35; pointer-events: none; }
.sc-navp { width: 100%; max-width: 380px; margin-top: 18px; }
.sc-tools { max-width: 400px; gap: 5px; }
.sc-tools button { width: 30px; height: 30px; }
.sc-tools button[data-c="19"] { background: repeating-linear-gradient(45deg, #fbf7ec 0 4px, #d9cfb8 4px 8px) !important; }
