/* ✍️ Just One */
.view.same { animation: none; }
.jp-rules { display: grid; gap: 6px; margin: 22px 0 8px; padding: 16px 18px; background: var(--card); border-radius: 22px; box-shadow: var(--shadow); font-size: 14px; color: var(--text-2); } .jp-rules b { color: var(--text); font-size: 15px; }
.jo-top { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; font-weight: 700; color: var(--text-2); font-size: 14px; } .jo-top b { color: var(--green); font-size: 16px; }
.jo-word { text-align: center; padding: 16px; border-radius: 24px; background: linear-gradient(135deg, #ff9f0a, #ff375f); color: #fff; box-shadow: 0 10px 30px rgba(255,55,95,.3); margin-bottom: 10px; animation: pop .5s var(--spring); }
.jo-word small { display: flex; align-items: center; justify-content: center; gap: 6px; opacity: .9; font-weight: 600; } .jo-word b { display: block; font-size: 38px; letter-spacing: -.03em; line-height: 1.1; margin-top: 4px; }
.jo-word.sm { padding: 8px; } .jo-word.sm b { font-size: 22px; } .jo-word.sm small { font-size: 11px; }
.pad-wrap { position: relative; margin: 8px 0; border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 2px var(--sep), var(--shadow); background: #fff; }
.pad-wrap { aspect-ratio: 2 / 1; }
.pad-wrap #pad { display: block; width: 100% !important; height: 100% !important; max-height: none; aspect-ratio: auto; touch-action: none; cursor: crosshair; border-radius: 0; box-shadow: none; }
.pad-hint { position: absolute; inset: 0; display: grid; place-items: center; color: #c7c7cc; font-size: 22px; font-weight: 700; pointer-events: none; transition: opacity .3s; } .pad-hint.gone { opacity: 0; }
.pad-tools { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 6px; margin-bottom: 10px; } .pad-tools .btn { padding: 10px 12px; font-size: 14px; } .pen.on { background: var(--ink); color: var(--paper); }
.jo-status { display: grid; justify-items: center; gap: 6px; margin-top: 12px; color: var(--text-2); }
.jo-avs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; } .jo-avs span { opacity: .35; transition: opacity .3s, transform .3s var(--spring); } .jo-avs span.ok { opacity: 1; transform: scale(1.1); }
.jo-eyes { font-size: 80px; animation: pop .7s var(--spring); }
.jo-h { margin: 8px 0 2px; font-size: 24px; }
.jo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.jo-card { position: relative; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--sep), var(--shadow); cursor: pointer; aspect-ratio: 2 / 1; transition: transform .2s var(--spring); animation: pop .45s var(--spring) both; }
.jo-card.ro { cursor: default; } .jo-card:active:not(.ro) { transform: scale(.95); }
.jo-card > img { width: 100%; height: 100%; object-fit: contain; display: block; }
.jo-by { position: absolute; left: 4px; bottom: 4px; }
.jo-card.struck { box-shadow: 0 0 0 3px var(--red); } .jo-card.struck > img { opacity: .3; filter: grayscale(1); }
.jo-card.struck::after { content: ""; position: absolute; left: 6%; right: 6%; top: 50%; height: 4px; background: var(--red); border-radius: 2px; transform: rotate(-8deg); }
.jo-card em { position: absolute; top: 4px; right: 6px; font-style: normal; font-size: 11px; font-weight: 800; color: var(--red); }
.jo-hidden { display: grid; place-items: center; height: 100%; font-size: 30px; color: var(--red); background: var(--fill); }
.big-field { font-size: 22px; text-align: center; padding: 16px; margin: 6px 0 10px; font-weight: 700; }
.jo-you { text-align: center; } .jo-you .yt-k { font-size: 22px; }

/* ---------- TV ---------- */
.justone-tv .justone-board { position: relative; z-index: 1; height: 100vh; box-sizing: border-box; padding: 3vh 4vw; display: grid; grid-template-rows: auto 1fr; gap: 2vh; }
.justone-tv[data-phase="lobby"] .justone-board, .justone-tv[data-phase="end"] .justone-board { display: block; }
.jo-logo { font-size: 12vh; animation: wave 2.4s ease-in-out infinite; display: inline-block; } @keyframes wave { 50% { transform: rotate(-10deg); } }
.jot-top { display: flex; align-items: center; gap: 3vw; } .jt-logo { font-size: 3vh; } .jt-logo b { font-weight: 900; font-style: italic; letter-spacing: -.03em; }
.jot-cards { display: flex; gap: .8vh; flex: 1; justify-content: center; } .jot-cards i { width: 3vh; height: 4.2vh; border-radius: .7vh; background: rgba(255,255,255,.1); transition: background .4s, transform .4s var(--spring); }
.jot-cards i.ok { background: #30d158; } .jot-cards i.bad { background: #ff453a; } .jot-cards i.cur { background: #fff; transform: scale(1.15); }
.jot-score { font-size: 4.4vh; font-weight: 900; color: #30d158; } .jot-score small { color: var(--text-2); font-size: 2.4vh; }
.jot-body { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3vh; min-height: 0; }
.jot-guesser { display: flex; align-items: center; gap: 3vh; animation: up .6s var(--ease) both; } .jot-guesser small { color: var(--text-2); font-size: 2.4vh; } .jot-guesser h1 { margin: 0; font-size: 7vh; letter-spacing: -.04em; }
.jot-sub { font-size: 2.8vh; color: var(--text-2); text-align: center; margin: 0; max-width: 80vw; } .jot-sub b { color: #fff; }
.jot-writers { display: flex; gap: 3vh; flex-wrap: wrap; justify-content: center; }
.jot-writers > div { display: grid; justify-items: center; gap: .8vh; opacity: .5; transition: opacity .4s, transform .4s var(--spring); } .jot-writers > div.ok { opacity: 1; transform: translateY(-1vh); }
.jot-writers b { font-size: 2.4vh; } .jot-writers span { font-size: 2vh; color: var(--text-2); } .jot-writers .ok span { color: #30d158; font-weight: 700; }
.jot-writers > div:not(.ok) .av { animation: think 1.6s ease-in-out infinite; } @keyframes think { 50% { transform: rotate(-5deg); } }
.jot-grid { display: grid; grid-template-columns: repeat(min(var(--n), 4), minmax(0, 40vh)); gap: 2.4vh; justify-content: center; width: 100%; }
.jot-card { position: relative; aspect-ratio: 2 / 1; border-radius: 2vh; overflow: hidden; background: #fff; box-shadow: 0 2vh 5vh rgba(0,0,0,.45); animation: cardIn .7s var(--d) var(--spring) both; transform: rotate(calc((var(--d) * 10 - 1) * 1deg)); }
@keyframes cardIn { from { transform: translateY(8vh) rotate(-12deg) scale(.6); opacity: 0; } }
.jot-card > img { width: 100%; height: 100%; object-fit: contain; } .jot-card .by { position: absolute; left: 1vh; bottom: 1vh; }
.jot-card.struck { background: #3a3a3c; } .jot-card.struck > img { opacity: .25; filter: grayscale(1); } .jot-card .x { display: grid; place-items: center; height: 100%; font-size: 8vh; color: #ff453a; }
.jot-card em { position: absolute; top: 1vh; right: 1.4vh; font-style: normal; color: #ff6961; font-weight: 800; font-size: 2vh; }
.jot-card.struck::after { content: ""; position: absolute; left: 8%; right: 8%; top: 50%; height: .7vh; border-radius: .4vh; background: #ff453a; transform: rotate(-8deg); }
.jot-card.empty { background: rgba(255,255,255,.06); display: grid; place-items: center; color: var(--text-2); font-size: 5vh; box-shadow: none; }
.jot-result { text-align: center; animation: pop .7s var(--spring) both; } .jot-result small { font-size: 2.6vh; color: var(--text-2); } .jot-result h1 { font-size: 13vh; margin: 0; letter-spacing: -.05em; font-weight: 900; } .jot-result p { font-size: 3.4vh; margin: 0; }
.jot-result.ok h1 { color: #30d158; } .jot-result.bad h1 { color: #fff; }
.jot-end { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2vh; }
.jot-end h1 { font-size: 14vh; margin: 0; letter-spacing: -.05em; font-weight: 900; font-style: italic; animation: pop .8s var(--spring) both; } .jot-end > p { font-size: 4vh; margin: 0; color: #d1d1d6; }
.jot-hist { display: grid; grid-template-columns: repeat(2, minmax(0, 46vh)); gap: 1vh 3vh; margin-top: 3vh; }
.jot-hist > div { display: flex; align-items: center; gap: 1.4vh; font-size: 2.4vh; padding: .8vh 1.6vh .8vh .8vh; border-radius: 99px; background: rgba(255,255,255,.07); text-align: left; animation: up .5s var(--d) var(--ease) both; } .jot-hist b { flex: 1; } .jot-hist span { color: var(--text-2); font-size: 2vh; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 18vh; }
