| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922 |
- :root {
- --ink: #3b2414;
- --paper: #fff6e4;
- --cream: #fff1d6;
- --pink: #ff6f91;
- --pink-dark: #d94a6f;
- --sky: #bfe6ff;
- }
- html,
- body {
- margin: 0;
- height: 100%;
- overflow: hidden;
- background: var(--cream);
- font-family: 'Comic Sans MS', 'Comic Neue', 'Chalkboard SE', 'Segoe UI', sans-serif;
- color: var(--ink);
- user-select: none;
- }
- #game {
- position: fixed;
- inset: 0;
- }
- #game canvas {
- display: block;
- cursor: crosshair;
- }
- #hud {
- position: fixed;
- inset: 0;
- pointer-events: none;
- }
- #status {
- position: absolute;
- top: 40%;
- width: 100%;
- text-align: center;
- font-size: 34px;
- font-weight: bold;
- text-shadow:
- 3px 3px 0 #fff,
- -2px -2px 0 #fff;
- }
- #help {
- position: absolute;
- left: 16px;
- bottom: 12px;
- font-size: 14px;
- background: var(--paper);
- border: 3px solid var(--ink);
- border-radius: 14px 10px 16px 9px;
- padding: 6px 12px;
- box-shadow: 4px 4px 0 rgba(59, 36, 20, 0.35);
- }
- #help:empty {
- display: none;
- }
- #fps {
- position: absolute;
- right: 16px;
- top: 12px;
- font-size: 13px;
- opacity: 0.6;
- }
- /* ---------- Title menu ---------- */
- #menu {
- position: fixed;
- inset: 0;
- display: grid;
- place-items: center;
- background:
- radial-gradient(circle at 50% 40%, rgba(255, 246, 228, 0.55), rgba(59, 36, 20, 0.45)),
- repeating-linear-gradient(45deg, rgba(255, 111, 145, 0.18) 0 24px, transparent 24px 48px);
- z-index: 10;
- }
- .menu-card {
- width: min(760px, calc(100vw - 32px));
- max-height: calc(100vh - 32px);
- overflow-y: auto;
- box-sizing: border-box;
- background: var(--paper);
- border: 4px solid var(--ink);
- border-radius: 28px 22px 30px 20px;
- box-shadow: 8px 10px 0 rgba(59, 36, 20, 0.45);
- padding: 22px 28px 26px;
- text-align: center;
- transform: rotate(-0.6deg);
- }
- .menu-card h1 {
- margin: 0;
- font-size: clamp(34px, 6vw, 58px);
- letter-spacing: 2px;
- color: var(--pink);
- -webkit-text-stroke: 2px var(--ink);
- text-shadow: 4px 4px 0 var(--ink);
- transform: rotate(-1.5deg);
- }
- .subtitle {
- margin: 6px 0 18px;
- font-size: 18px;
- }
- .name-label {
- display: inline-flex;
- gap: 10px;
- align-items: center;
- font-weight: bold;
- font-size: 18px;
- }
- .name-label input {
- font: inherit;
- font-weight: normal;
- border: 3px solid var(--ink);
- border-radius: 12px 8px 12px 9px;
- padding: 6px 12px;
- background: #fff;
- color: var(--ink);
- width: 200px;
- }
- .menu-card h2 {
- margin: 20px 0 10px;
- font-size: 20px;
- }
- .characters {
- display: flex;
- gap: 16px;
- justify-content: center;
- flex-wrap: wrap;
- }
- .character {
- width: 220px;
- font: inherit;
- color: inherit;
- background: #fff;
- border: 3px solid var(--ink);
- border-radius: 18px 14px 20px 12px;
- padding: 10px 12px 14px;
- cursor: pointer;
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: 4px;
- transition:
- transform 0.12s,
- box-shadow 0.12s,
- background 0.12s;
- box-shadow: 4px 4px 0 rgba(59, 36, 20, 0.3);
- }
- .character:hover {
- transform: translateY(-3px) rotate(-1deg);
- }
- .character.selected {
- background: #ffe3ea;
- box-shadow:
- 0 0 0 4px var(--pink),
- 6px 6px 0 rgba(59, 36, 20, 0.4);
- transform: translateY(-4px) rotate(1deg);
- }
- .character strong {
- font-size: 19px;
- }
- .character span {
- font-size: 13px;
- line-height: 1.3;
- }
- .portrait {
- height: 120px;
- width: auto;
- max-width: 180px;
- object-fit: contain;
- }
- #menu-play {
- margin-top: 22px;
- font: inherit;
- font-size: 26px;
- font-weight: bold;
- color: #fff;
- background: var(--pink);
- border: 4px solid var(--ink);
- border-radius: 20px 14px 22px 12px;
- padding: 8px 34px;
- cursor: pointer;
- box-shadow: 5px 5px 0 var(--ink);
- text-shadow: 2px 2px 0 var(--ink);
- }
- #menu-play:hover {
- background: var(--pink-dark);
- transform: rotate(-2deg) scale(1.05);
- }
- #menu-play:active {
- transform: translate(3px, 3px);
- box-shadow: 2px 2px 0 var(--ink);
- }
- /* ---------- Buttons ---------- */
- button.primary,
- button.secondary {
- font: inherit;
- font-weight: bold;
- border: 3px solid var(--ink);
- border-radius: 16px 11px 17px 10px;
- padding: 6px 18px;
- cursor: pointer;
- box-shadow: 3px 3px 0 var(--ink);
- }
- button.primary {
- color: #fff;
- background: var(--pink);
- text-shadow: 1px 1px 0 var(--ink);
- }
- button.secondary {
- color: var(--ink);
- background: #fff;
- }
- button.primary:hover:not(:disabled),
- button.secondary:hover:not(:disabled) {
- transform: rotate(-1.5deg) scale(1.04);
- }
- button:disabled {
- opacity: 0.45;
- cursor: not-allowed;
- }
- button.small {
- font-size: 14px;
- padding: 4px 12px;
- }
- /* ---------- Game browser ---------- */
- .menu-card h1.small {
- font-size: clamp(26px, 4.5vw, 40px);
- margin-bottom: 14px;
- }
- .games {
- list-style: none;
- margin: 0 auto;
- padding: 0;
- max-height: 46vh;
- overflow-y: auto;
- text-align: left;
- }
- .games li {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 12px;
- background: #fff;
- border: 3px solid var(--ink);
- border-radius: 14px 10px 15px 9px;
- padding: 8px 12px;
- margin-bottom: 10px;
- }
- .games li div {
- display: flex;
- flex-direction: column;
- min-width: 0;
- }
- .games li strong {
- font-size: 18px;
- }
- .games li span {
- font-size: 13px;
- opacity: 0.8;
- }
- .games li.empty {
- justify-content: center;
- font-style: italic;
- border-style: dashed;
- }
- .manual {
- display: flex;
- gap: 10px;
- justify-content: center;
- align-items: center;
- flex-wrap: wrap;
- margin: 12px 0 4px;
- }
- .manual input {
- font: inherit;
- border: 3px solid var(--ink);
- border-radius: 10px 8px 11px 7px;
- padding: 4px 10px;
- width: 170px;
- margin-left: 8px;
- color: var(--ink);
- }
- input.invalid {
- border-color: #d93a5b !important;
- background: #ffe3ea;
- }
- .actions {
- display: flex;
- justify-content: space-between;
- margin-top: 18px;
- gap: 12px;
- }
- /* ---------- Warm-up panel ---------- */
- #lobby-panel {
- position: fixed;
- top: 40px;
- right: 16px;
- width: 230px;
- background: var(--paper);
- border: 3px solid var(--ink);
- border-radius: 18px 12px 20px 11px;
- box-shadow: 5px 5px 0 rgba(59, 36, 20, 0.4);
- padding: 10px 14px 14px;
- z-index: 5;
- text-align: center;
- }
- #lobby-panel[hidden] {
- display: none;
- }
- #lobby-panel h3 {
- margin: 0 0 2px;
- color: var(--pink);
- -webkit-text-stroke: 1px var(--ink);
- font-size: 22px;
- }
- #lobby-panel .hint {
- margin: 0 0 8px;
- font-size: 12px;
- }
- #lobby-panel ul {
- list-style: none;
- margin: 0 0 6px;
- padding: 0;
- text-align: left;
- }
- #lobby-panel li {
- padding: 2px 0;
- opacity: 0.7;
- }
- #lobby-panel li.ready {
- opacity: 1;
- font-weight: bold;
- color: #3f8a1f;
- }
- #lobby-panel li.me::after {
- content: ' ★';
- color: var(--pink);
- }
- #lobby-panel .status {
- margin: 4px 0 10px;
- font-weight: bold;
- }
- /* ---------- Round HUD ---------- */
- #round-hud {
- position: fixed;
- top: 8px;
- left: 50%;
- transform: translateX(-50%) rotate(-1deg);
- background: var(--paper);
- border: 3px solid var(--ink);
- border-radius: 16px 11px 18px 10px;
- box-shadow: 4px 4px 0 rgba(59, 36, 20, 0.4);
- padding: 2px 18px 4px;
- text-align: center;
- pointer-events: none;
- z-index: 4;
- }
- #round-hud[hidden] {
- display: none;
- }
- #round-hud .label {
- font-size: 13px;
- }
- #round-hud .timer {
- font-size: 30px;
- font-weight: bold;
- line-height: 1;
- }
- #round-hud.rush .timer {
- color: #d93a5b;
- animation: wobble 0.5s infinite alternate;
- }
- #round-hud .rush-label {
- font-size: 12px;
- font-weight: bold;
- color: #d93a5b;
- }
- @keyframes wobble {
- from {
- transform: scale(1) rotate(-2deg);
- }
- to {
- transform: scale(1.12) rotate(2deg);
- }
- }
- #scoreboard {
- position: fixed;
- top: 10px;
- left: 12px;
- list-style: none;
- margin: 0;
- padding: 6px 10px;
- background: rgba(255, 246, 228, 0.88);
- border: 3px solid var(--ink);
- border-radius: 14px 10px 15px 9px;
- min-width: 150px;
- pointer-events: none;
- z-index: 4;
- }
- #scoreboard[hidden] {
- display: none;
- }
- #scoreboard li {
- display: flex;
- justify-content: space-between;
- gap: 12px;
- font-size: 15px;
- }
- #scoreboard li.me {
- font-weight: bold;
- }
- #scoreboard li.holder::before {
- content: '🍒 ';
- }
- #scoreboard li.dead {
- opacity: 0.45;
- }
- #hint {
- position: fixed;
- bottom: 60px;
- left: 50%;
- transform: translateX(-50%);
- font-weight: bold;
- font-size: 18px;
- text-shadow:
- 2px 2px 0 #fff,
- -2px -2px 0 #fff;
- pointer-events: none;
- }
- /* ---------- Results ---------- */
- #results {
- position: fixed;
- inset: 0;
- display: grid;
- place-items: center;
- background: rgba(59, 36, 20, 0.35);
- z-index: 8;
- }
- #results[hidden] {
- display: none;
- }
- #results table {
- margin: 0 auto 10px;
- border-collapse: collapse;
- font-size: 18px;
- min-width: 340px;
- }
- #results th,
- #results td {
- padding: 4px 12px;
- border-bottom: 2px dashed rgba(59, 36, 20, 0.25);
- }
- #results td.num {
- text-align: right;
- font-weight: bold;
- }
- #results tr.me td {
- color: var(--pink-dark);
- }
- #results tr:first-child td:first-child::before {
- content: '👑 ';
- }
- #results .winner {
- font-size: 24px;
- font-weight: bold;
- color: var(--pink);
- -webkit-text-stroke: 1px var(--ink);
- margin: 0 0 10px;
- }
- #results .trophies {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
- gap: 10px;
- margin: 8px 0 12px;
- }
- #results .trophy {
- background: #fff;
- border: 3px solid var(--ink);
- border-radius: 14px 10px 15px 9px;
- padding: 6px 8px;
- transform: rotate(-1deg);
- }
- #results .trophy:nth-child(even) {
- transform: rotate(1.2deg);
- }
- #results .trophy strong {
- display: block;
- color: var(--pink-dark);
- }
- #results .trophy span {
- font-size: 13px;
- }
- #results .footer {
- font-size: 14px;
- opacity: 0.8;
- }
- /* ---------- Character sheet ---------- */
- .characters .character {
- width: 150px;
- padding: 8px 8px 10px;
- }
- .sheet {
- display: flex;
- gap: 18px;
- justify-content: center;
- align-items: center;
- flex-wrap: wrap;
- margin: 14px auto 0;
- padding: 10px 16px;
- max-width: 640px;
- min-height: 110px;
- background: #fff;
- border: 3px dashed var(--ink);
- border-radius: 16px 12px 18px 11px;
- text-align: left;
- }
- .sheet .abilities {
- flex: 1 1 300px;
- }
- .sheet p {
- margin: 3px 0;
- font-size: 15px;
- }
- .sheet .desc {
- font-style: italic;
- margin-bottom: 6px;
- }
- .sheet .flaw {
- color: #b02f4c;
- }
- .sheet .stats {
- flex: 0 0 auto;
- }
- .stat {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 10px;
- font-size: 14px;
- margin: 4px 0;
- }
- .pips {
- display: inline-flex;
- gap: 4px;
- }
- .pips i {
- width: 14px;
- height: 14px;
- border-radius: 50%;
- border: 2px solid var(--ink);
- background: #fff;
- }
- .pips i.on {
- background: var(--pink);
- }
- /* Compact title menu: four characters and their sheet must fit in 720 px. */
- .menu-card {
- padding: 14px 24px 16px;
- }
- .menu-card h1 {
- font-size: clamp(30px, 5vw, 46px);
- }
- .subtitle {
- margin: 2px 0 10px;
- }
- .menu-card h2 {
- margin: 10px 0 8px;
- }
- .portrait {
- height: 92px;
- }
- #menu-play {
- margin-top: 12px;
- }
- /* ---------- Map rotation and catch-up pick ---------- */
- #lobby-panel .rotation {
- text-align: left;
- border-top: 2px dashed rgba(59, 36, 20, 0.3);
- margin: 6px 0;
- padding-top: 6px;
- font-size: 13px;
- }
- #lobby-panel .rotation-title {
- margin: 0 0 4px;
- font-weight: bold;
- }
- #lobby-panel .rotation-summary,
- #lobby-panel .rotation-hint {
- margin: 2px 0;
- }
- #lobby-panel .rotation-hint {
- opacity: 0.7;
- font-size: 12px;
- }
- #lobby-panel select {
- font: inherit;
- width: 100%;
- border: 2px solid var(--ink);
- border-radius: 8px;
- padding: 2px 4px;
- margin-bottom: 4px;
- }
- #lobby-panel label {
- display: block;
- cursor: pointer;
- }
- #round-hud .wind {
- font-size: 14px;
- font-weight: bold;
- color: #2b7bbf;
- }
- #results .map-pick {
- margin: 4px 0 10px;
- }
- #results .pick-title {
- font-weight: bold;
- margin: 4px 0 8px;
- }
- #results .pick-buttons {
- display: flex;
- gap: 8px;
- justify-content: center;
- flex-wrap: wrap;
- }
- #results .picked {
- color: var(--pink-dark);
- font-weight: bold;
- }
- /* ---------- Options ---------- */
- #options {
- position: fixed;
- inset: 0;
- display: grid;
- place-items: center;
- background: rgba(59, 36, 20, 0.35);
- z-index: 20;
- }
- #options[hidden] {
- display: none;
- }
- .options-card {
- width: min(460px, calc(100vw - 32px));
- text-align: left;
- }
- .options-card h1 {
- text-align: center;
- margin-bottom: 12px;
- }
- .option-row {
- display: grid;
- grid-template-columns: 150px 1fr;
- align-items: center;
- gap: 12px;
- margin: 8px 0;
- font-weight: bold;
- }
- .option-row.check {
- grid-template-columns: auto 1fr;
- }
- .option-row input[type='range'] {
- accent-color: var(--pink);
- }
- .option-row input[type='checkbox'] {
- width: 20px;
- height: 20px;
- accent-color: var(--pink);
- }
- .option-keys {
- font-size: 13px;
- background: #fff;
- border: 2px dashed var(--ink);
- border-radius: 10px;
- padding: 6px 10px;
- }
- .option-buttons {
- display: flex;
- flex-wrap: wrap;
- justify-content: flex-end;
- gap: 10px;
- margin-top: 14px;
- }
- #options-button {
- position: fixed;
- right: 16px;
- bottom: 12px;
- width: 42px;
- height: 42px;
- font-size: 24px;
- line-height: 1;
- background: var(--paper);
- color: var(--ink);
- border: 3px solid var(--ink);
- border-radius: 50%;
- box-shadow: 3px 3px 0 rgba(59, 36, 20, 0.4);
- cursor: pointer;
- z-index: 21;
- }
- #options-button:hover {
- background: #fff;
- }
- #lobby-panel .character-pick {
- display: flex;
- flex-direction: column;
- gap: 4px;
- margin: 6px 0 8px;
- font-size: 13px;
- font-weight: bold;
- text-align: left;
- }
- #lobby-panel select {
- font: inherit;
- font-weight: normal;
- }
- .menu-buttons {
- display: flex;
- justify-content: center;
- align-items: flex-end;
- gap: 16px;
- }
- .menu-buttons #menu-options {
- margin-bottom: 4px;
- }
- /* Game version and self-update progress, bottom-left corner. */
- #update-banner {
- position: fixed;
- left: 10px;
- bottom: 8px;
- z-index: 50;
- display: flex;
- align-items: center;
- gap: 10px;
- font-size: 12px;
- opacity: 0.55;
- pointer-events: none;
- }
- #update-banner.active {
- font-size: 15px;
- opacity: 1;
- padding: 6px 12px;
- background: var(--paper);
- border: 3px solid var(--ink);
- border-radius: 14px;
- pointer-events: auto;
- }
- /* ---------- Surprise banner ---------- */
- #surprise-banner {
- position: fixed;
- top: 22%;
- left: 50%;
- transform: translateX(-50%) rotate(-3deg);
- font-size: clamp(30px, 5vw, 64px);
- font-weight: bold;
- color: #ffe14d;
- -webkit-text-stroke: 3px var(--ink);
- text-shadow: 5px 5px 0 var(--ink);
- white-space: nowrap;
- pointer-events: none;
- z-index: 9;
- }
- #surprise-banner[hidden] {
- display: none;
- }
- #surprise-banner.pop {
- animation: surprise-pop 2.6s ease-out forwards;
- }
- @keyframes surprise-pop {
- 0% {
- transform: translateX(-50%) rotate(-3deg) scale(0.2);
- opacity: 0;
- }
- 12% {
- transform: translateX(-50%) rotate(2deg) scale(1.15);
- opacity: 1;
- }
- 20% {
- transform: translateX(-50%) rotate(-3deg) scale(1);
- }
- 80% {
- opacity: 1;
- }
- 100% {
- transform: translateX(-50%) rotate(-3deg) scale(1.05) translateY(-20px);
- opacity: 0;
- }
- }
|