/* Not Clue on the phones: dark oxblood by default, ivory parchment in the light theme. */
.clp { display: flex; flex-direction: column; gap: 10px; padding-bottom: 236px; color: #f3e3bf; }
.clp .h2, .clp-plabel, .clp-ftitle { font-family: "IM Fell English SC", Georgia, serif; font-weight: 400; }

/* whose turn */
.clp-turnbar { display: flex; align-items: center; gap: 10px; border-radius: 18px; padding: 12px 14px; font-size: 16px; }
.clp-turnbar.me { flex-direction: column; align-items: flex-start; gap: 3px; background: linear-gradient(120deg, #ffd60a, #ffb000); color: #1b1b1b; box-shadow: 0 10px 30px rgba(255,190,0,.45); animation: clp-pop .35s cubic-bezier(.2,1.4,.4,1) both, clp-throb 1.6s ease-in-out .4s infinite; }
.clp-turnbar.me b { font: 900 30px/1 Inter, Arial, sans-serif; font-style: italic; letter-spacing: -.01em; }
.clp-turnbar.me span { font-size: 15px; font-weight: 700; line-height: 1.25; }
.clp-turnbar.idle { background: rgba(18,6,9,.55); color: rgba(243,227,191,.72); border: 1px solid rgba(201,165,74,.25); }
.clp-turnbar.idle b { color: #f3e3bf; }
.clp-turnbar.out { background: rgba(255,107,107,.12); border-color: rgba(255,107,107,.35); }
.clp-chipdie { margin-left: auto; font-weight: 800; color: #f3e3bf; }
@keyframes clp-pop { from { transform: scale(.8); opacity: 0; } }
@keyframes clp-throb { 50% { box-shadow: 0 10px 40px rgba(255,190,0,.75); transform: scale(1.015); } }
body.clp-myturn::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 15; box-shadow: inset 0 0 0 5px #ffc400, inset 0 0 50px rgba(255,196,0,.45); animation: clp-frame 1.6s ease-in-out infinite; }
@keyframes clp-frame { 50% { box-shadow: inset 0 0 0 7px #ffc400, inset 0 0 80px rgba(255,196,0,.6); } }
.clp.waiting .ndp-fan { opacity: .62; filter: saturate(.75); transition: opacity .3s; }
.clp.waiting .ndp-fan .clcard.peeking { opacity: 1; }
.clp.waiting .clp-boardwrap { filter: saturate(.85); }

/* who you are, the notepad */
.clp-me { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.clp-me > i { width: 22px; height: 22px; border-radius: 50%; background: var(--sc); box-shadow: 0 0 0 2px rgba(0,0,0,.4), 0 0 10px var(--sc); flex: none; }
.clp-whoami { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.clp-whoami small { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.clp-me b { font-family: "IM Fell English SC", Georgia, serif; font-weight: 400; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clp-notebtn { min-height: 44px; border: 1px solid rgba(201,165,74,.5); background: rgba(18,6,9,.55); color: #f3e3bf; border-radius: 12px; padding: 6px 12px; font-size: 15px; font-weight: 700; display: flex; flex-direction: column; align-items: center; line-height: 1.1; cursor: pointer; }
.clp-notebtn small { font-size: 11px; font-weight: 600; opacity: .75; }
.clp-zoom { margin-left: auto; width: 46px; height: 46px; flex: none; border-radius: 12px; border: 1px solid rgba(201,165,74,.5); background: rgba(18,6,9,.55); color: #f3dc9c; font-size: 20px; line-height: 1; cursor: pointer; }
[data-theme="light"] .clp-zoom { background: rgba(255,251,242,.95); color: #6b4a12; }
.clp-sheet .btn.ghost { color: #e6c27a; }
[data-theme="light"] .clp-sheet .btn.ghost { color: #8a5a10; }

/* the board */
.clp-boardwrap { position: relative; margin: 0 -10px; border-radius: 16px; overflow: hidden; }
.clp-boardwrap.zoom { overflow: auto; max-height: 96vw; -webkit-overflow-scrolling: touch; }
.clp-board svg { width: 100%; height: auto; display: block; }
.clp-boardwrap.zoom .clp-board svg { width: 210%; }

/* actions */
.clp-acts { display: flex; flex-direction: column; gap: 8px; }
.clp-acts:empty { display: none; }
.clp-acts .btn { min-height: 52px; font-weight: 800; }
.clp .btn.primary, .clp-sheet .btn.primary { background: linear-gradient(180deg, #8e2433, #6e1a25); color: #f8e7b5; box-shadow: inset 0 0 0 2px #c9a54a, 0 6px 16px rgba(0,0,0,.3); }
.clp .btn.primary:disabled, .clp-sheet .btn.primary:disabled { opacity: .45; }
.btn.clp-roll { min-height: 76px; font-size: 28px; font-weight: 900; letter-spacing: .06em; background: linear-gradient(180deg, #8e2433, #6e1a25); color: #f8e7b5; box-shadow: inset 0 0 0 2px #c9a54a, 0 8px 20px rgba(0,0,0,.4); }
.clp-dieicon { font-size: 34px; vertical-align: -4px; margin-right: 6px; }
.btn.clp-pass { background: rgba(201,165,74,.18); color: #f3dc9c; border: 1px solid rgba(201,165,74,.55); }
.btn.clp-roombtn { display: flex; align-items: center; gap: 10px; background: rgba(255,214,10,.16); color: #ffe27a; border: 2px solid #ffd60a; text-align: left; }
.btn.clp-roombtn .cl-mini { border-radius: 8px; }
.clp-acts .btn.clp-accuse { background: transparent; color: #ff9b8a; border: 1px solid rgba(255,107,107,.5); min-height: 44px; font-size: 15px; font-weight: 700; padding: 8px; }
.btn.clp-danger { background: #c0392b; color: #fff; }
.clp-hint { text-align: center; font-weight: 700; color: #ffd166; font-size: 15px; }
.clp-panel { background: rgba(18,6,9,.55); border: 1px solid rgba(201,165,74,.3); border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.clp-plabel { font-size: 17px; color: #e6c27a; display: flex; align-items: baseline; gap: 8px; }
.clp-plabel small { font-family: Inter, Arial, sans-serif; font-size: 12px; opacity: .75; }
.clp-three { display: flex; gap: 6px; }
.clp-chain { display: flex; flex-wrap: wrap; gap: 6px; }
.clp-link { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 3px; border-radius: 999px; background: rgba(255,255,255,.06); font-size: 13px; font-weight: 700; border: 1.5px solid transparent; }
.clp-link small { font-weight: 600; opacity: .8; }
.clp-link.pass { opacity: .55; } .clp-link.idle { opacity: .4; }
.clp-link.shown { border-color: #ffb800; background: rgba(255,184,0,.16); }
.clp-link.wait { border-color: #6aa7c4; animation: pulse 1s infinite; }
.clp-nobody { font-weight: 800; color: #ff9b8a; font-size: 14px; align-self: center; }
.clp-gave { font-size: 14px; color: #a7d3e6; }
.clp-answer { border-color: #ffb800; }
.clp-answer.none { border-color: #ff6b6b; }
.clp-answerrow { display: flex; gap: 12px; align-items: center; }
.clp-answerrow .p { color: inherit; opacity: .85; }

/* everyone else, and the log */
.clp-opps { display: flex; flex-wrap: wrap; gap: 6px; }
.clp-opp { display: inline-flex; align-items: center; gap: 6px; background: rgba(18,6,9,.5); border-radius: 999px; padding: 4px 10px 4px 4px; font-size: 14px; font-weight: 700; border: 2px solid transparent; }
.clp-opp > i { width: 12px; height: 12px; border-radius: 50%; background: var(--sc); box-shadow: 0 0 0 1.5px rgba(0,0,0,.4); }
.clp-opp .ct { background: rgba(255,255,255,.12); border-radius: 999px; padding: 0 7px; font-variant-numeric: tabular-nums; }
.clp-opp.turn { border-color: #ffb800; }
.clp-opp.out { opacity: .5; }
.clp-outtag { font-size: 10px; font-weight: 900; color: #ff9b8a; letter-spacing: .08em; }
.clp-log { font-size: 13px; color: rgba(243,227,191,.6); line-height: 1.45; padding: 0 4px; }
.clp-log .l-suggest, .clp-log .l-accuse { color: #f3e3bf; } .clp-log .l-nobody, .clp-log .l-out { color: #ff9b8a; } .clp-log .l-win { color: #ffd166; font-weight: 800; }

/* the hand */
body.g-notclue .ndp-dock { background: linear-gradient(to top, rgba(26,9,13,.95) 70%, rgba(26,9,13,0)); }
.ndp-fan .clcard { position: absolute; top: 22px; transform-origin: 50% 100%; transition: transform .18s ease, filter .2s; cursor: pointer; }
.ndp-fan .clcard.peeking { translate: 0 -30px; z-index: 60 !important; filter: none; }
.ndp-fan .clcard.lit { box-shadow: 0 0 0 3px #ffd60a, 0 0 22px rgba(255,214,10,.6), 0 6px 16px rgba(0,0,0,.35); }
.clp-dock .ndp-fan { height: calc(var(--cw) * 1.48 + 34px); }
.clp-big { --cw: min(46vw, 200px); }

/* sheets */
body.g-notclue .ndp-sheet.clp-sheet { background: #1f0c10; border-color: rgba(201,165,74,.45); color: #f3e3bf; max-height: 82vh; }
body.g-notclue .ndp-sheet.clp-sheet.danger { border-color: #ff6b6b; }
.clp-sheet .p { color: rgba(243,227,191,.75); font-size: 14px; }
.clp-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.clp-tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.clp-tile { position: relative; display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 8px; border-radius: 12px; background: rgba(255,255,255,.06); border: 2px solid transparent; color: inherit; font-size: 13px; font-weight: 700; text-align: left; line-height: 1.15; cursor: pointer; }
.clp-tiles.three .clp-tile { flex-direction: column; text-align: center; gap: 4px; padding: 8px 4px; font-size: 12px; }
.clp-tile.on { border-color: #ffd60a; background: rgba(255,214,10,.18); }
.clp-tile.known, .clp-tile.crossed { opacity: .5; }
.clp-tile.known.on, .clp-tile.crossed.on { opacity: 1; }
.clp-tn { min-width: 0; }
.clp-tile em { display: block; margin-top: 2px; font-style: normal; font-size: 10px; font-weight: 800; color: #a7e08a; text-transform: uppercase; letter-spacing: .04em; }
.clp-tile em.m-no { color: #ff9b8a; } .clp-tile em.m-maybe { color: #ffd166; } .clp-tile em.m-yes { color: #a7e08a; }
.clp-showrow { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.clp-showbtn { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: none; color: #ffd60a; font-weight: 800; font-size: 15px; cursor: pointer; padding: 4px; }
.clp-showbtn .clcard { box-shadow: 0 0 0 3px #ffd60a, 0 10px 24px rgba(0,0,0,.45); }
.clp-showbtn:active .clcard { transform: scale(.96); }
.clp-note { display: flex; align-items: center; gap: 10px; padding: 4px 2px; border-bottom: 1px solid rgba(201,165,74,.15); }
.clp-nn { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; }
.clp-nn small { display: block; font-weight: 600; font-size: 12px; opacity: .7; }
.clp-note.known .clp-nn { text-decoration: line-through; text-decoration-color: rgba(167,224,138,.7); opacity: .65; }
.clp-note.k-answer .clp-nn { text-decoration: none; opacity: 1; color: #ffd166; }
.clp-note.crossed .clp-nn { opacity: .5; }
.clp-tick { color: #a7e08a; font-weight: 900; font-size: 18px; }
.clp-tick.ans { color: #ffd166; }
.clp-mark { width: 44px; height: 40px; border-radius: 10px; border: 1.5px solid rgba(201,165,74,.5); background: rgba(255,255,255,.05); color: #f3e3bf; font-size: 18px; font-weight: 900; cursor: pointer; flex: none; }
.clp-mark.m-no { color: #ff9b8a; border-color: #ff9b8a; } .clp-mark.m-maybe { color: #ffd166; border-color: #ffd166; } .clp-mark.m-yes { color: #a7e08a; border-color: #a7e08a; }

/* the end */
.clp-final { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 16px 0 40px; }
.clp-ftitle { font-size: 30px; color: #ffd166; }
.clp-fcards { display: flex; gap: 8px; }
.clp-flip { width: var(--cw); aspect-ratio: 5 / 7.4; perspective: 900px; }
.clp-flipin { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: clp-turn .8s cubic-bezier(.3,1.2,.4,1) var(--d) both; }
.clp-fb, .clp-ff { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.clp-ff { transform: rotateY(180deg); }
@keyframes clp-turn { from { transform: rotateY(0deg); } to { transform: rotateY(180deg); } }
.clp-fsent { font-family: "Spectral", Georgia, serif; font-style: italic; font-size: 18px; max-width: 340px; }

/* full-screen moments */
.clp-moment { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 20px; background: radial-gradient(circle, color-mix(in srgb, var(--pc) 45%, rgba(20,6,9,.8)), rgba(10,3,5,.82) 75%); animation: clp-moment 2.7s ease both; }
@keyframes clp-moment { 0% { opacity: 0; } 8% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
.clp-moment .big { font: 400 54px/1 "IM Fell English SC", Georgia, serif; color: #ffd166; text-align: center; text-shadow: 0 4px 0 #7a1f2b, 0 10px 24px rgba(0,0,0,.6); transform: rotate(-4deg); animation: clp-slam .5s cubic-bezier(.2,1.5,.4,1) both; }
.clp-moment.wrong .big { color: #ff6b6b; font-size: 76px; text-shadow: 0 4px 0 #3a0a10, 0 10px 24px rgba(0,0,0,.6); }
.clp-moment.nobody .big { font-size: 42px; }
@keyframes clp-slam { from { transform: rotate(-4deg) scale(2.6); opacity: 0; } }
.clp-moment .cards { display: flex; gap: 8px; }
.clp-moment .cards .clcard { animation: clp-deal .5s cubic-bezier(.2,1.3,.4,1) both; }
.clp-moment .cards .clcard:nth-child(2) { animation-delay: .1s; } .clp-moment .cards .clcard:nth-child(3) { animation-delay: .2s; }
@keyframes clp-deal { from { transform: translateY(80px) rotate(-10deg) scale(.6); opacity: 0; } }
.clp-moment .who { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.72); color: #fff; font-size: 16px; font-weight: 800; padding: 8px 16px 8px 8px; border-radius: 22px; max-width: 92vw; line-height: 1.25; }
.clp-moment .avatar { width: 40px; height: 40px; font-size: 18px; }

/* light theme: ivory and parchment */
[data-theme="light"] .clp { color: #3b2416; }
[data-theme="light"] .clp-turnbar.idle, [data-theme="light"] .clp-panel, [data-theme="light"] .clp-opp, [data-theme="light"] .clp-notebtn { background: rgba(255,251,242,.88); border-color: rgba(176,141,72,.4); color: #3b2416; box-shadow: 0 4px 14px rgba(90,60,20,.08); }
[data-theme="light"] .clp-turnbar.idle { color: rgba(59,36,22,.7); }
[data-theme="light"] .clp-turnbar.idle b, [data-theme="light"] .clp-chipdie { color: #3b2416; }
[data-theme="light"] .clp-turnbar.out { background: rgba(192,57,43,.1); }
[data-theme="light"] .clp-plabel { color: #8a5a10; }
[data-theme="light"] .clp-hint { color: #8a5a10; }
[data-theme="light"] .btn.clp-pass { background: rgba(176,141,72,.16); color: #6b4a12; }
[data-theme="light"] .btn.clp-roombtn { background: rgba(255,204,0,.2); color: #6b4a12; border-color: #e0a800; }
[data-theme="light"] .btn.clp-accuse { color: #b03024; border-color: rgba(192,57,43,.45); }
[data-theme="light"] .clp-link { background: rgba(120,80,30,.07); }
[data-theme="light"] .clp-link.shown { background: rgba(255,184,0,.22); }
[data-theme="light"] .clp-nobody, [data-theme="light"] .clp-outtag { color: #b03024; }
[data-theme="light"] .clp-gave { color: #1d6f8f; }
[data-theme="light"] .clp-opp .ct { background: rgba(0,0,0,.08); }
[data-theme="light"] .clp-log { color: rgba(59,36,22,.65); }
[data-theme="light"] .clp-log .l-suggest, [data-theme="light"] .clp-log .l-accuse { color: #3b2416; } [data-theme="light"] .clp-log .l-nobody, [data-theme="light"] .clp-log .l-out { color: #b03024; } [data-theme="light"] .clp-log .l-win { color: #9a6410; }
[data-theme="light"] body.g-notclue .ndp-dock { background: linear-gradient(to top, rgba(244,234,214,.97) 70%, rgba(244,234,214,0)); }
[data-theme="light"] .ndp-fan .clcard.lit { box-shadow: 0 0 0 3px #e0a800, 0 0 18px rgba(224,168,0,.5), 0 6px 16px rgba(30,40,80,.25); }
[data-theme="light"] body.g-notclue .ndp-sheet.clp-sheet { background: #fffaf0; border-color: rgba(176,141,72,.5); color: #3b2416; }
[data-theme="light"] .clp-sheet .p { color: rgba(59,36,22,.72); }
[data-theme="light"] .clp-tile { background: rgba(120,80,30,.06); }
[data-theme="light"] .clp-tile.on { background: rgba(255,204,0,.22); border-color: #e0a800; }
[data-theme="light"] .clp-tile em { color: #2f7d1e; } [data-theme="light"] .clp-tile em.m-no { color: #b03024; } [data-theme="light"] .clp-tile em.m-maybe { color: #9a6410; }
[data-theme="light"] .clp-note { border-bottom-color: rgba(176,141,72,.2); }
[data-theme="light"] .clp-tick { color: #2f7d1e; } [data-theme="light"] .clp-tick.ans { color: #9a6410; }
[data-theme="light"] .clp-mark { background: rgba(120,80,30,.05); color: #3b2416; }
[data-theme="light"] .clp-mark.m-no { color: #b03024; border-color: #b03024; } [data-theme="light"] .clp-mark.m-maybe { color: #9a6410; border-color: #9a6410; } [data-theme="light"] .clp-mark.m-yes { color: #2f7d1e; border-color: #2f7d1e; }
[data-theme="light"] .clp-showbtn { color: #8a5a10; }
[data-theme="light"] .clp-ftitle { color: #8a5a10; }
