ai-puzzle-maker / static /style.css
munish0838's picture
add share
ef19e55 verified
Raw
History Blame Contribute Delete
10.4 kB
/* AI Puzzle Maker — dark cozy table-top theme */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #0e0b14; overflow: hidden; }
body { font-family: "Fredoka", -apple-system, "Segoe UI", system-ui, sans-serif; color: #f2ecff; }
#stage { position: relative; width: 100vw; height: 100vh; overflow: hidden; }
#cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block;
background: radial-gradient(120% 90% at 50% 30%, #1d1530 0%, #120d1e 55%, #0c0913 100%); }
.hidden { display: none !important; }
/* ---------- screens ---------- */
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
justify-content: center; gap: 14px; padding: 22px; text-align: center;
background: rgba(10, 7, 18, 0.82); backdrop-filter: blur(8px); z-index: 30; overflow-y: auto; }
.screen.panel { justify-content: flex-start; padding-top: 5vh; }
h1 { font-size: clamp(30px, 6vw, 54px); margin: 0; letter-spacing: 3px; font-weight: 700;
text-shadow: 0 4px 0 #2a1a4d, 0 8px 24px rgba(160, 90, 255, .45); }
h1 span { color: #c79bff; }
h2 { margin: 0 0 4px; letter-spacing: 2px; }
h3 { margin: 0; letter-spacing: 1.5px; color: #cdbcf2; }
.tag { margin: 0; color: #b9a8e0; }
.muted { color: #a795cf; max-width: 560px; margin: 0; font-size: 14px; }
.msg { min-height: 18px; margin: 2px 0 0; color: #ffb86b; font-size: 14px; }
.tip { color: #b9a8e0; max-width: 460px; }
/* ---------- buttons & inputs ---------- */
.btn { font-family: inherit; font-size: 16px; font-weight: 600; letter-spacing: 1px; cursor: pointer;
color: #1d1230; background: linear-gradient(180deg, #ffd76b, #ffaf45); border: 0;
border-radius: 14px; padding: 12px 22px; box-shadow: 0 4px 0 #9a5b16, 0 8px 18px rgba(0,0,0,.35);
transition: transform .08s, box-shadow .08s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #9a5b16; }
.btn.big { font-size: 18px; padding: 14px 30px; }
.btn.ghost { background: rgba(255,255,255,.07); color: #e7dcff; box-shadow: inset 0 0 0 2px #4a3a78; }
.btn.ghost:active { box-shadow: inset 0 0 0 2px #4a3a78; }
.btn.share { background: linear-gradient(180deg, #7be0a2, #3fbf78); box-shadow: 0 4px 0 #1c6e42, 0 8px 18px rgba(0,0,0,.35); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
input { font-family: inherit; font-size: 16px; color: #fff; background: rgba(255,255,255,.08);
border: 2px solid #4a3a78; border-radius: 12px; padding: 12px 16px; outline: none; width: 100%; }
input:focus { border-color: #a06bff; box-shadow: 0 0 0 3px rgba(160,107,255,.25); }
input::placeholder { color: #8d7cb5; }
/* ---------- home ---------- */
.name-row { display: flex; align-items: center; gap: 10px; width: min(380px, 90vw);
background: rgba(255,255,255,.05); border: 2px solid #4a3a78; border-radius: 14px;
padding: 4px 14px; }
.name-row:focus-within { border-color: #a06bff; }
.name-ico { font-size: 18px; }
.name-row input { background: none; border: 0; box-shadow: none; padding: 10px 0; }
.name-row input:focus { box-shadow: none; }
.name-ok { color: #7be0a2; font-weight: 700; font-size: 18px; }
.name-row.nudge { animation: nudge .35s ease; border-color: #ffb86b; }
@keyframes nudge { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }
.gen-box { width: min(620px, 94vw); display: flex; flex-direction: column; gap: 12px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { font-size: 13px; color: #d8c8ff; background: rgba(160,107,255,.14); border: 1px solid #5a4596;
border-radius: 999px; padding: 6px 12px; cursor: pointer; transition: background .12s; }
.chip:hover { background: rgba(160,107,255,.3); }
.opt-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }
.opt-label { font-size: 12px; letter-spacing: 2px; color: #9d8cc7; margin-right: 4px; }
.pc-group { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.05);
border-radius: 12px; padding: 6px 10px; }
.pc-btn { font-family: inherit; font-weight: 600; font-size: 15px; color: #cdbcf2; background: transparent;
border: 2px solid transparent; border-radius: 9px; padding: 6px 12px; cursor: pointer; }
.pc-btn.on { color: #1d1230; background: #c79bff; }
.tog { font-family: inherit; font-weight: 600; font-size: 14px; letter-spacing: 1px; color: #cdbcf2;
background: rgba(255,255,255,.05); border: 2px solid #4a3a78; border-radius: 12px;
padding: 10px 16px; cursor: pointer; }
.tog.on { color: #1d1230; background: #7be0a2; border-color: #3fbf78; }
.tog b { font-weight: 700; }
.home-row { display: flex; gap: 18px; align-items: center; margin-top: 8px; }
/* ---------- rails / cards ---------- */
.rail { display: flex; gap: 14px; overflow-x: auto; max-width: 94vw; padding: 6px 4px 12px; }
.rail.tall { flex-wrap: wrap; justify-content: center; overflow-y: auto; max-height: 56vh; }
.card { flex: 0 0 auto; width: 180px; background: rgba(255,255,255,.05); border: 2px solid #3a2d63;
border-radius: 14px; overflow: hidden; cursor: pointer; text-align: left;
transition: transform .1s, border-color .1s; }
.card:hover { transform: translateY(-3px); border-color: #a06bff; }
.card img { width: 100%; height: 110px; object-fit: cover; display: block; background: #221a3a; }
.card .c-body { padding: 8px 10px 10px; }
.card .c-title { font-weight: 600; font-size: 14px; color: #f2ecff; white-space: nowrap;
overflow: hidden; text-overflow: ellipsis; }
.card .c-sub { font-size: 12px; color: #9d8cc7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .c-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.card .like { background: none; border: 0; cursor: pointer; font-size: 13px; color: #ff7da0; font-family: inherit; }
.card .play { font-size: 12px; font-weight: 700; color: #ffd76b; letter-spacing: 1px; }
.card .badge { font-size: 11px; font-weight: 700; letter-spacing: .5px; color: #7be0a2; }
.card .badge.local { color: #9d8cc7; }
.card .del { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border: 0;
border-radius: 8px; background: rgba(10,7,18,.75); color: #ff7da0; font-size: 13px;
cursor: pointer; font-family: inherit; display: none; }
.card { position: relative; }
.card:hover .del { display: block; }
.g-bar { display: flex; gap: 8px; width: min(640px, 94vw); }
.g-bar input { flex: 1; }
.g-f { padding: 10px 14px; font-size: 13px; }
.g-f.on { box-shadow: inset 0 0 0 2px #c79bff; color: #fff; }
/* ---------- HUD ---------- */
#hud { position: absolute; top: 0; left: 0; right: 0; z-index: 20; display: flex;
justify-content: space-between; align-items: flex-start; padding: 10px 12px; pointer-events: none; }
#hud > div { display: flex; gap: 8px; align-items: center; pointer-events: auto; }
.hud-btn { font-size: 17px; width: 42px; height: 42px; border-radius: 12px; border: 0; cursor: pointer;
background: rgba(20, 14, 36, .8); color: #e7dcff; box-shadow: inset 0 0 0 2px #4a3a78;
font-family: inherit; }
.hud-btn:active { transform: translateY(1px); }
.hud-btn.wide { width: auto; padding: 0 14px; font-size: 14px; font-weight: 600; }
.hud-btn.on { box-shadow: inset 0 0 0 2px #a06bff; color: #fff; }
.hud-mid { flex-direction: column; gap: 2px !important; align-items: center !important; }
#timer { font-size: 26px; font-weight: 700; letter-spacing: 1px; color: #ffd76b;
text-shadow: 0 2px 0 rgba(0,0,0,.5); font-variant-numeric: tabular-nums; }
#prog { font-size: 13px; color: #b9a8e0; font-weight: 600; letter-spacing: 1px; }
#streak { font-size: 15px; font-weight: 700; color: #ff9d5c; background: rgba(40, 18, 8, .75);
border-radius: 10px; padding: 8px 12px; box-shadow: inset 0 0 0 2px #b35a1f;
animation: pulse .5s ease-in-out infinite alternate; }
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.08); } }
/* ---------- mascot speech bubble ---------- */
#bubble { position: absolute; z-index: 25; max-width: 240px; padding: 10px 14px; font-size: 15px;
font-weight: 500; color: #241738; background: #fff7e8; border-radius: 14px;
box-shadow: 0 4px 14px rgba(0,0,0,.4); pointer-events: none;
transform: translate(-50%, -100%); transition: opacity .2s; }
#bubble::after { content: ""; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%);
border: 9px solid transparent; border-top-color: #fff7e8; border-bottom: 0; }
/* ---------- loading ---------- */
.spinner { width: 64px; height: 64px; border-radius: 50%; border: 6px solid #3a2d63;
border-top-color: #c79bff; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* ---------- complete ---------- */
.c-quip { font-size: 19px; font-weight: 600; color: #ffd76b; max-width: 560px; min-height: 24px; }
.c-stats { display: flex; gap: 22px; font-size: 15px; color: #cdbcf2; }
.c-stats b { color: #fff; font-size: 19px; display: block; }
#cBoardWrap { width: min(480px, 92vw); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.db-list { width: 100%; display: flex; flex-direction: column; gap: 4px; max-height: 30vh; overflow-y: auto; }
.db-row { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.05);
border-radius: 10px; padding: 7px 12px; font-size: 14px; }
.db-row .rk { width: 28px; text-align: center; font-weight: 700; color: #ffd76b; }
.db-row .nm { flex: 1; text-align: left; font-weight: 600; }
.db-row .tm { font-variant-numeric: tabular-nums; color: #cdbcf2; }
.db-row.me { box-shadow: inset 0 0 0 2px #a06bff; }
.db-empty { color: #8d7cb5; font-size: 14px; padding: 10px; }
.post-row { display: flex; gap: 8px; width: 100%; }
.post-row input { flex: 1; }
.c-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.back-btn { margin-top: 10px; }
@media (max-width: 600px) {
#timer { font-size: 20px; }
.card { width: 150px; }
.card img { height: 92px; }
.hud-btn.wide { font-size: 12px; }
}