2026-03-09 21:52:54 -04:00
|
|
|
// ── Gear button ────────────────────────────────────────────
|
|
|
|
|
.gear-btn {
|
|
|
|
|
position: absolute;
|
|
|
|
|
bottom: 0.5rem;
|
|
|
|
|
right: 0.5rem;
|
|
|
|
|
z-index: 1;
|
|
|
|
|
font-size: 2rem;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
color: rgba(var(--secUser), 1);
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
width: 3rem;
|
|
|
|
|
height: 3rem;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
background-color: rgba(var(--priUser), 1);
|
|
|
|
|
border: 0.15rem solid rgba(var(--secUser), 1);
|
2026-03-15 16:39:14 -04:00
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
|
color: rgba(var(--quaUser), 1);
|
|
|
|
|
border-color: rgba(var(--quaUser), 1);
|
|
|
|
|
}
|
2026-03-09 21:52:54 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ── Applet menu (shared structure) ─────────────────────────
|
|
|
|
|
%applet-menu {
|
|
|
|
|
position: absolute;
|
|
|
|
|
bottom: 3rem;
|
|
|
|
|
right: 0.5rem;
|
|
|
|
|
z-index: 100;
|
|
|
|
|
background-color: rgba(var(--priUser), 0.95);
|
2026-03-09 22:42:30 -04:00
|
|
|
border: 0.15rem solid rgba(var(--secUser), 1);
|
2026-03-09 21:52:54 -04:00
|
|
|
box-shadow:
|
2026-03-09 22:42:30 -04:00
|
|
|
0 0 0.5rem rgba(var(--secUser), 0.75),
|
2026-03-09 21:52:54 -04:00
|
|
|
0.12rem 0.12rem 0.5rem rgba(0, 0, 0, 0.25),
|
|
|
|
|
;
|
|
|
|
|
border-radius: 0.75rem;
|
|
|
|
|
padding: 1rem;
|
|
|
|
|
|
|
|
|
|
.menu-btns {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 0.25rem;
|
|
|
|
|
margin-top: 0.75rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
form {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 0.5rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input[type="checkbox"] {
|
|
|
|
|
appearance: none;
|
|
|
|
|
-webkit-appearance: none;
|
|
|
|
|
width: 0.9em;
|
|
|
|
|
height: 0.9em;
|
|
|
|
|
border: 0.1rem solid rgba(var(--secUser), 0.4);
|
|
|
|
|
border-radius: 0.25rem;
|
|
|
|
|
background: transparent;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
position: relative;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
top: 0.1em;
|
|
|
|
|
|
|
|
|
|
&:checked::after {
|
|
|
|
|
content: '';
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 0.2em;
|
|
|
|
|
bottom: 0.2em;
|
|
|
|
|
width: 0.55em;
|
|
|
|
|
height: 1em;
|
|
|
|
|
border: 0.12em solid rgba(var(--ninUser), 1);
|
|
|
|
|
border-top: none;
|
|
|
|
|
border-left: none;
|
|
|
|
|
transform: rotate(45deg);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-24 17:22:49 -04:00
|
|
|
#id_dash_applet_menu { @extend %applet-menu; }
|
|
|
|
|
#id_game_applet_menu { @extend %applet-menu; }
|
2026-04-04 14:33:35 -04:00
|
|
|
#id_game_kit_menu { @extend %applet-menu; }
|
2026-03-24 17:22:49 -04:00
|
|
|
#id_wallet_applet_menu { @extend %applet-menu; }
|
|
|
|
|
#id_room_menu { @extend %applet-menu; }
|
|
|
|
|
#id_billboard_applet_menu { @extend %applet-menu; }
|
2026-03-09 21:52:54 -04:00
|
|
|
|
2026-03-15 01:17:09 -04:00
|
|
|
// Page-level gear buttons — fixed to viewport bottom-right
|
|
|
|
|
.gameboard-page,
|
|
|
|
|
.dashboard-page,
|
Django Channels role-select sprint: turn_changed, roles_revealed, role_select_start consumer handlers; WS URL changed from room_slug to room_id UUID; TableSeat model - room, gamer, slot_number, role, role_revealed, seat_position fields; Room.table_status field with ROLE_SELECT, SIG_SELECT, IN_GAME choices; migration 0006_table_status_and_table_seat; pick_roles and select_role views; _role_select_context helper; _notify_turn_changed, _notify_roles_revealed, _notify_role_select_start notifiers; all gate-mutation views now call _notify_gate_update; ChannelsFunctionalTest base class with serve_static, screenshot, dump helpers; SQLite TEST NAME set to file path for ChannelsLiveServerTestCase; InMemoryChannelLayer added to test CHANNEL_LAYERS settings; FT 5 and FT 6 now passing - active seat arc and turn advance via WS, no page refresh; room.js, gatekeeper.js, role-select.js added to apps/epic/static; applets.js, game-kit.js, dashboard.js, wallet.js relocated to app-scoped static dirs; room.html: hex table, table-seat arcs, card-stack, inventory panel, role-card hand, WS scripts; _room.scss: room-shell flex layout, .table-hex polygon clip-path, .table-seat and .seat-card-arc, .card-stack eligible/ineligible states, .card flip animation, .inv-role-card stacked hand, .role-select-backdrop; gear btn and room menu always position: fixed; 375 tests, 0 skipped
2026-03-17 00:24:23 -04:00
|
|
|
.wallet-page,
|
2026-03-24 17:22:49 -04:00
|
|
|
.room-page,
|
|
|
|
|
.billboard-page {
|
2026-03-15 01:17:09 -04:00
|
|
|
> .gear-btn {
|
|
|
|
|
position: fixed;
|
|
|
|
|
bottom: 4.2rem;
|
|
|
|
|
right: 0.5rem;
|
2026-03-28 18:52:46 -04:00
|
|
|
z-index: 314;
|
2026-03-15 01:17:09 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#id_dash_applet_menu,
|
|
|
|
|
#id_game_applet_menu,
|
2026-04-04 14:33:35 -04:00
|
|
|
#id_game_kit_menu,
|
2026-03-24 17:22:49 -04:00
|
|
|
#id_wallet_applet_menu,
|
|
|
|
|
#id_billboard_applet_menu {
|
2026-03-15 01:17:09 -04:00
|
|
|
position: fixed;
|
|
|
|
|
bottom: 6.6rem;
|
|
|
|
|
right: 1rem;
|
2026-03-28 18:52:46 -04:00
|
|
|
z-index: 312;
|
2026-03-15 01:17:09 -04:00
|
|
|
}
|
|
|
|
|
|
2026-03-23 01:06:14 -04:00
|
|
|
// In landscape: shift gear btn and applet menus left of the footer right sidebar
|
2026-03-23 19:31:57 -04:00
|
|
|
@media (orientation: landscape) and (max-width: 1440px) {
|
2026-03-23 01:06:14 -04:00
|
|
|
$sidebar-w: 4rem;
|
|
|
|
|
|
|
|
|
|
.gameboard-page,
|
|
|
|
|
.dashboard-page,
|
|
|
|
|
.wallet-page,
|
2026-03-24 17:22:49 -04:00
|
|
|
.room-page,
|
|
|
|
|
.billboard-page {
|
2026-03-23 01:06:14 -04:00
|
|
|
> .gear-btn {
|
2026-04-05 23:02:32 -04:00
|
|
|
right: 0.5rem;
|
|
|
|
|
bottom: 3.95rem; // same gap above kit btn as portrait; no page-specific overrides needed
|
2026-03-23 01:06:14 -04:00
|
|
|
top: auto;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#id_dash_applet_menu,
|
|
|
|
|
#id_game_applet_menu,
|
2026-04-04 14:33:35 -04:00
|
|
|
#id_game_kit_menu,
|
2026-03-24 17:22:49 -04:00
|
|
|
#id_wallet_applet_menu,
|
2026-04-05 23:33:13 -04:00
|
|
|
#id_room_menu,
|
2026-03-24 17:22:49 -04:00
|
|
|
#id_billboard_applet_menu {
|
2026-04-05 23:33:13 -04:00
|
|
|
right: 0.5rem;
|
|
|
|
|
bottom: 6.6rem;
|
2026-03-23 01:06:14 -04:00
|
|
|
top: auto;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-24 17:31:51 -04:00
|
|
|
// ── Applet box visual shell (reusable outside the grid) ────
|
|
|
|
|
%applet-box {
|
|
|
|
|
border:
|
|
|
|
|
0.2rem solid rgba(var(--secUser), 0.5),
|
|
|
|
|
;
|
|
|
|
|
box-shadow:
|
|
|
|
|
inset -0.125rem -0.125rem 0 rgba(var(--ninUser), 0.125),
|
|
|
|
|
inset 0.125rem 0.125rem 0 rgba(0, 0, 0, 0.8)
|
|
|
|
|
;
|
|
|
|
|
background-color: rgba(0, 0, 0, 0.125);
|
|
|
|
|
border-radius: 0.75rem;
|
|
|
|
|
position: relative;
|
|
|
|
|
padding: 0.75rem 0.75rem 0.75rem 2.5rem;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
min-width: 0;
|
|
|
|
|
|
|
|
|
|
> h2 {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
width: 2rem;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
writing-mode: vertical-rl;
|
|
|
|
|
transform: rotate(180deg);
|
|
|
|
|
font-size: 1rem;
|
|
|
|
|
letter-spacing: 0.2em;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding-right: 0.2rem;
|
|
|
|
|
color: rgba(var(--secUser), 1);
|
|
|
|
|
text-shadow:
|
|
|
|
|
1px 1px 0 rgba(255, 255, 255, 0.06),
|
|
|
|
|
-0.06rem -0.06rem 0 rgba(0, 0, 0, 0.25)
|
|
|
|
|
;
|
|
|
|
|
background-color: rgba(0, 0, 0, 0.125);
|
|
|
|
|
box-shadow:
|
|
|
|
|
0 0 0.5rem rgba(var(--priUser), 0.5),
|
|
|
|
|
0.12rem 0.12rem 0.5rem rgba(0, 0, 0, 0.5),
|
|
|
|
|
;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
z-index: 1;
|
|
|
|
|
|
2026-04-03 14:55:37 -04:00
|
|
|
a {
|
|
|
|
|
color: rgba(var(--terUser), 1);
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
color: rgba(var(--ninUser), 1);
|
|
|
|
|
text-shadow: 0 0 0.5rem rgba(var(--terUser), 1);
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-03-24 17:31:51 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-09 21:52:54 -04:00
|
|
|
// ── Applets grid (shared across all boards) ────────────────
|
|
|
|
|
%applets-grid {
|
|
|
|
|
container-type: inline-size;
|
|
|
|
|
--grid-gap: 0.5rem;
|
|
|
|
|
flex: 1;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
overflow-x: hidden;
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: repeat(12, 1fr);
|
|
|
|
|
grid-auto-rows: 3rem;
|
|
|
|
|
gap: var(--grid-gap);
|
|
|
|
|
padding: 0.75rem;
|
|
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
|
mask-image: linear-gradient(
|
|
|
|
|
to bottom,
|
|
|
|
|
transparent 0%,
|
|
|
|
|
black 2%,
|
2026-03-22 14:36:02 -04:00
|
|
|
black 99%,
|
2026-03-09 21:52:54 -04:00
|
|
|
transparent 100%
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
section {
|
2026-03-24 17:31:51 -04:00
|
|
|
@extend %applet-box;
|
2026-03-09 21:52:54 -04:00
|
|
|
grid-column: span var(--applet-cols, 12);
|
|
|
|
|
grid-row: span var(--applet-rows, 3);
|
|
|
|
|
|
|
|
|
|
@container (max-width: 550px) {
|
|
|
|
|
grid-column: span 12;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-24 16:46:46 -04:00
|
|
|
#id_applets_container { @extend %applets-grid; }
|
|
|
|
|
#id_game_applets_container { @extend %applets-grid; }
|
|
|
|
|
#id_wallet_applets_container { @extend %applets-grid; }
|
|
|
|
|
#id_billboard_applets_container { @extend %applets-grid; }
|
2026-04-04 14:33:35 -04:00
|
|
|
#id_gk_sections_container { @extend %applets-grid; }
|