first commit

This commit is contained in:
Lucas Roschnowski
2026-08-16 20:50:31 +02:00
parent 69a0e7a9f7
commit c5de95fade
8 changed files with 1748 additions and 1 deletions
+299
View File
@@ -0,0 +1,299 @@
:root {
--bg1: #17100a;
--bg2: #241811;
--wood: #3a2718;
--wood2: #4a3322;
--gold: #d9a441;
--gold-dim: #a87f2f;
--amber: #f2c069;
--paper: #f3e9d4;
--ink: #2a1c10;
--good: #6fcf7f;
--bad: #e4674a;
--cup-silver: #b9c2cc;
--cup-silver2: #7e8a97;
--cup-handle: #8a97a5;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
color: var(--paper);
background:
radial-gradient(1200px 700px at 20% -10%, #3d2a18 0%, transparent 60%),
radial-gradient(1000px 800px at 110% 10%, #33241a 0%, transparent 55%),
linear-gradient(160deg, var(--bg1), var(--bg2) 60%, #1c130c);
min-height: 100vh;
}
body::before {
content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .05;
background-image: repeating-linear-gradient(0deg, transparent 0 26px, #000 26px 27px);
}
.hidden { display: none !important; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; }
/* ---------- generic ---------- */
.btn {
border: none; border-radius: 10px; padding: 11px 18px; font-size: 15px;
cursor: pointer; transition: transform .06s, filter .15s; font-weight: 600;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, var(--amber), var(--gold)); color: #2a1a05; box-shadow: 0 3px 0 #8a651f, 0 6px 14px rgba(0,0,0,.4); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.primary:disabled { filter: grayscale(.7) brightness(.8); cursor: default; box-shadow: none; }
.btn.ghost { background: rgba(255,255,255,.06); color: var(--paper); border: 1px solid rgba(255,255,255,.15); }
.btn.ghost:hover { background: rgba(255,255,255,.12); }
.btn.danger { background: linear-gradient(180deg, #e8795e, #c94f33); color: #2a0d05; }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.linklike { background: none; border: none; color: var(--amber); cursor: pointer; font-size: 14px; }
input {
background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.18); color: var(--paper);
border-radius: 10px; padding: 11px 14px; font-size: 15px; outline: none; min-width: 0;
}
input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,164,65,.18); }
/* ---------- name screen ---------- */
#view-name { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.name-card {
width: min(440px, 94vw); text-align: center; padding: 38px 34px;
background: linear-gradient(170deg, rgba(255,255,255,.05), rgba(0,0,0,.25));
border: 1px solid rgba(217,164,65,.28); border-radius: 22px;
box-shadow: 0 24px 60px rgba(0,0,0,.55);
}
.logo-dice { display: flex; gap: 8px; justify-content: center; margin-bottom: 18px; }
.logo-dice .d {
width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
background: linear-gradient(150deg, #fff8ea, #e9d9b8); color: #7a2d1c;
font-family: Georgia, serif; font-weight: 700; font-size: 22px;
box-shadow: 0 4px 0 #b9a684, 0 8px 16px rgba(0,0,0,.4);
}
.name-card h1 { margin: 6px 0 4px; font-size: 30px; color: var(--amber); letter-spacing: .5px; }
.name-card .sub { font-size: 14px; color: rgba(243,233,212,.75); line-height: 1.5; margin: 8px 0 22px; }
.name-card label { display: block; text-align: left; font-size: 13px; margin: 0 0 7px; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; }
.name-row { display: flex; gap: 10px; margin-top: 12px; }
.name-row input { flex: 1; }
/* ---------- topbar ---------- */
.topbar {
display: flex; justify-content: space-between; align-items: center; gap: 12px;
padding: 14px 22px; border-bottom: 1px solid rgba(217,164,65,.2);
background: rgba(0,0,0,.28); flex-wrap: wrap;
}
.brand { font-family: Georgia, serif; font-size: 20px; color: var(--amber); }
.brand-sub { font-size: 13px; color: rgba(243,233,212,.55); font-family: "Segoe UI", sans-serif; }
.me-chip { font-size: 14px; color: rgba(243,233,212,.8); }
.topbar-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
/* ---------- lobby ---------- */
.lobby-main {
display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px;
max-width: 1050px; margin: 26px auto; padding: 0 20px;
}
@media (max-width: 860px) { .lobby-main { grid-template-columns: 1fr; } }
.lobby-card, .side-card {
background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.09);
border-radius: 18px; padding: 20px;
}
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.card-head h2 { margin: 0; font-size: 22px; color: var(--amber); }
.room-list { display: flex; flex-direction: column; gap: 12px; min-height: 60px; }
.room-empty { color: rgba(243,233,212,.5); font-size: 14px; text-align: center; padding: 22px 0; }
.room {
display: flex; justify-content: space-between; align-items: center; gap: 12px;
padding: 14px 16px; border-radius: 14px;
background: linear-gradient(160deg, rgba(217,164,65,.07), rgba(0,0,0,.18));
border: 1px solid rgba(255,255,255,.08);
}
.room.playing { border-color: rgba(111,207,127,.35); }
.room-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.room-name { font-size: 16px; font-weight: 600; }
.room-players { font-size: 13px; color: rgba(243,233,212,.65); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-state { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.chip { font-size: 12px; padding: 4px 10px; border-radius: 20px; font-weight: 600; }
.chip.waiting { background: rgba(217,164,65,.16); color: var(--amber); border: 1px solid rgba(217,164,65,.4); }
.chip.playing { background: rgba(111,207,127,.14); color: var(--good); border: 1px solid rgba(111,207,127,.4); }
.chip.full { background: rgba(228,103,74,.14); color: var(--bad); border: 1px solid rgba(228,103,74,.4); }
.create-row { display: flex; gap: 10px; margin-top: 16px; }
.create-row input { flex: 1; }
.side-card h3 { color: var(--amber); margin-top: 0; font-size: 18px; }
.rules-mini { padding-left: 18px; line-height: 1.65; font-size: 14px; margin: 0; }
.rules-mini li { margin-bottom: 6px; color: rgba(243,233,212,.85); }
.hint { font-size: 13px; color: rgba(243,233,212,.55); font-style: italic; }
/* ---------- game layout ---------- */
.game-main {
display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px;
max-width: 1180px; margin: 22px auto; padding: 0 20px; align-items: start;
}
@media (max-width: 980px) { .game-main { grid-template-columns: 1fr; } }
.game-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.side-col { display: flex; flex-direction: column; gap: 16px; }
/* turn banner */
.turn-banner {
border-radius: 14px; padding: 14px 18px; font-size: 17px; text-align: center;
background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.1); min-height: 52px;
display: grid; place-items: center; font-family: Georgia, serif;
}
.turn-banner.mine {
background: linear-gradient(160deg, rgba(217,164,65,.22), rgba(0,0,0,.2));
border-color: var(--gold); color: var(--amber); box-shadow: 0 0 26px rgba(217,164,65,.15);
}
.turn-banner.them { color: rgba(243,233,212,.85); }
/* last claim */
.last-claim {
border-radius: 14px; padding: 10px 16px; text-align: center; font-size: 15px;
background: rgba(0,0,0,.25); border: 1px dashed rgba(217,164,65,.45); color: var(--paper);
}
.last-claim b { color: var(--amber); }
/* table rows */
.table-row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; min-height: 120px; }
.opp-seat { text-align: center; width: 150px; }
.opp-seat.active { outline: 2px solid var(--gold); outline-offset: 6px; border-radius: 18px; }
.seat-name { font-size: 14px; margin-bottom: 6px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #555; display: inline-block; }
.dot.on { background: var(--good); box-shadow: 0 0 6px var(--good); }
.dot.off { background: #664; }
.opp-eye { font-size: 12px; color: rgba(243,233,212,.6); margin-top: 5px; }
.opp-eye.dead { color: var(--bad); }
.dead-seat { opacity: .45; }
.mini-cups { display: flex; gap: 6px; justify-content: center; }
.mini-cup {
width: 26px; height: 34px; border-radius: 4px 4px 12px 12px;
background: linear-gradient(90deg, var(--cup-silver2), var(--cup-silver) 45%, var(--cup-silver2));
box-shadow: inset 0 -6px 10px rgba(0,0,0,.35), 0 4px 8px rgba(0,0,0,.4);
}
.actions-title { text-align: center; font-size: 14.5px; color: var(--paper); margin-bottom: 10px; }
.actions-title b { color: var(--amber); }
.phase-chip { font-size: 13px; padding: 5px 12px; border-radius: 20px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.15); color: rgba(243,233,212,.8); }
/* ---------- cups ---------- */
.cups { display: flex; justify-content: center; gap: 16px; padding: 6px 0 2px; }
.cup { position: relative; width: 96px; height: 112px; cursor: pointer; }
.cup-body {
position: absolute; inset: 0;
background:
linear-gradient(90deg, var(--cup-silver2) 0%, var(--cup-silver) 30%, #e3e9f0 46%, var(--cup-silver2) 78%, #5c6875 100%);
border-radius: 10px 10px 42% 42% / 10px 10px 18% 18%;
box-shadow: inset 0 -12px 22px rgba(0,0,0,.35), 0 10px 18px rgba(0,0,0,.45);
transition: transform .28s cubic-bezier(.5,-0.3,.4,1.5);
transform-origin: bottom center;
}
.cup-shine {
position: absolute; top: 12px; left: 22px; width: 10px; height: 55%;
background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,0));
border-radius: 8px;
}
.cup-base {
position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
width: 34px; height: 12px; border-radius: 0 0 40% 40%;
background: linear-gradient(90deg, #5c6875, var(--cup-silver), #5c6875);
}
.cup::after {
content: ""; position: absolute; top: 18px; right: -16px; width: 18px; height: 44px;
border: 7px solid var(--cup-handle); border-left: none; border-radius: 0 12px 12px 0;
}
.cup.flipped .cup-body { transform: rotate(180deg) translateY(6px); }
.cup.flipped::after { transform: scaleY(-1); }
.cup.nope { animation: nope .3s; }
@keyframes nope { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.cup-label { text-align: center; font-size: 11px; color: rgba(243,233,212,.5); margin-top: 4px; letter-spacing: 1px; }
/* ---------- dice ---------- */
.dice-area { display: flex; justify-content: center; align-items: center; gap: 14px; min-height: 74px; padding: 8px 0; }
.die {
width: 58px; height: 58px; border-radius: 12px; position: relative;
background: linear-gradient(150deg, #fffaf0, #ead9b6);
box-shadow: inset 0 -4px 8px rgba(0,0,0,.15), 0 6px 12px rgba(0,0,0,.4);
}
.die.rolling { animation: roll .5s linear infinite; }
@keyframes roll {
0% { transform: rotate(0) translateY(0); } 25% { transform: rotate(180deg) translateY(-10px); }
50% { transform: rotate(360deg) translateY(0); } 75% { transform: rotate(540deg) translateY(-8px); }
100% { transform: rotate(720deg) translateY(0); }
}
.pip { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: #241505; box-shadow: inset 0 2px 3px rgba(0,0,0,.5); }
.pip.p1 { top: 24px; left: 24px; }
.pip.p2 { top: 11px; left: 11px; } .pip.p3 { top: 36px; right: 11px; }
.pip.p4 { top: 11px; left: 11px; } .pip.p5 { top: 36px; right: 11px; } .pip.p6 { top: 24px; left: 24px; }
.pip.p7 { top: 36px; left: 11px; } .pip.p8 { top: 11px; right: 11px; } .pip.p9 { top: 36px; left: 11px; } .pip.p10 { top: 24px; left: 24px; } .pip.p11 { top: 36px; right: 11px; }
.dice-msg { text-align: center; color: rgba(243,233,212,.55); font-size: 14px; font-style: italic; }
/* ---------- actions ---------- */
.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.actions .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn.big { padding: 14px 22px; font-size: 16px; }
.combo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; max-width: 520px; margin: 0 auto; }
.combo-btn {
text-align: left; padding: 8px 12px; border-radius: 10px; cursor: pointer; font-size: 13.5px;
background: rgba(255,255,255,.06); color: var(--paper); border: 1px solid rgba(255,255,255,.14);
transition: background .12s;
}
.combo-btn:hover { background: rgba(217,164,65,.2); border-color: var(--gold); }
.combo-btn .rank-label { font-weight: 700; color: var(--amber); }
.combo-btn .rank-sub { color: rgba(243,233,212,.6); font-size: 12px; }
/* ---------- chat ---------- */
.chat-box { background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 14px; }
.chat-log { height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; padding-right: 4px; scroll-behavior: smooth; }
.chat-log::-webkit-scrollbar { width: 8px; } .chat-log::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }
.log-line { font-size: 13.5px; color: rgba(243,233,212,.8); line-height: 1.45; }
.log-line .who { color: var(--amber); font-weight: 600; }
.log-line .ts { color: rgba(243,233,212,.3); font-size: 11px; margin-right: 4px; }
.log-line.sys { color: rgba(243,233,212,.6); font-style: italic; }
.log-line.good { color: var(--good); }
.log-line.bad { color: var(--bad); }
.chat-input { display: flex; gap: 8px; margin-top: 10px; }
.chat-input input { flex: 1; padding: 9px 12px; }
/* ---------- scoreboard ---------- */
.board-card { background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 16px 18px; }
.board-card h3 { margin: 0 0 12px; color: var(--amber); font-size: 17px; }
.score-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; margin-bottom: 6px; background: rgba(255,255,255,.03); }
.score-row.turn { background: rgba(217,164,65,.12); outline: 1px solid rgba(217,164,65,.5); }
.score-row.dead { opacity: .45; }
.score-name { flex: 1; font-weight: 600; font-size: 14.5px; display: flex; gap: 7px; align-items: center; }
.score-eye { font-size: 13px; color: rgba(243,233,212,.75); white-space: nowrap; }
.eyes { letter-spacing: 2px; color: var(--gold); }
.eyes.dead { color: var(--bad); letter-spacing: 0; }
.host-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.host-actions .note { width: 100%; font-size: 12px; color: rgba(243,233,212,.45); }
/* my board */
.my-board {
background:
linear-gradient(180deg, rgba(217,164,65,.08), rgba(0,0,0,.3));
border: 1px solid rgba(217,164,65,.3); border-radius: 18px; padding: 16px; text-align: center;
}
.my-nameplate { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.my-nameplate b { font-size: 16px; color: var(--amber); }
.turn-chip { background: var(--gold); color: #2a1a05; font-weight: 700; font-size: 12px; padding: 3px 10px; border-radius: 12px; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .55; } }
/* ---------- overlay ---------- */
.overlay { position: fixed; inset: 0; background: rgba(10,6,3,.72); display: grid; place-items: center; z-index: 50; backdrop-filter: blur(4px); }
.overlay-card {
width: min(460px, 92vw); text-align: center; background: linear-gradient(170deg, #2c1e13, #1d130b);
border: 1px solid rgba(217,164,65,.4); border-radius: 20px; padding: 34px 30px;
box-shadow: 0 30px 80px rgba(0,0,0,.7);
}
#overlay-emoji { font-size: 58px; }
.overlay-card h2 { color: var(--amber); margin: 10px 0 6px; }
.overlay-card p { color: rgba(243,233,212,.8); font-size: 15px; }
#overlay-actions { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(10,6,3,.75); display: grid; place-items: center; z-index: 60; padding: 16px; }
.modal-card {
width: min(620px, 95vw); max-height: 88vh; overflow-y: auto;
background: linear-gradient(170deg, #2c1e13, #1d130b); border: 1px solid rgba(217,164,65,.4);
border-radius: 18px; padding: 28px 30px; position: relative;
}
.modal-card h2 { color: var(--amber); margin-top: 0; }
.modal-card h3 { color: var(--gold); font-size: 15px; text-transform: uppercase; letter-spacing: 1px; margin: 18px 0 8px; }
.modal-card p, .modal-card li { font-size: 14px; line-height: 1.6; color: rgba(243,233,212,.88); }
.rules-list { padding-left: 22px; }
.modal-x { position: absolute; top: 14px; right: 14px; background: none; border: none; color: rgba(243,233,212,.6); font-size: 20px; cursor: pointer; }
.modal-x:hover { color: var(--paper); }