html {
background-color: moccasin;
height: 100%;
}
body {
background-color: cadetblue;
transition: background-color 0.1s ease-out;
margin: 20px;
padding: 0;
font-family: "Almendra";
}
header {
background-color: moccasin;
padding: 10px;
border-bottom: 2px dashed gray;
.header-container {
display: flex;
flex-direction: row-reverse;
align-items: center;
h1 {
color: cornflowerblue;
font-family: "Almendra";
text-align: left;
font-size: clamp(20px, 10vh, 55px);
height: auto;
max-height: 100px;
flex: 1;
}
.boat {
height: auto;
max-width: 150px;
width: 100%;
pointer-events: none;
display: block;
}
.boat-container {
display: flex;
justify-content: left;
align-items: left;
width: 100%;
flex: 2;
}
}
}
.Content {
margin-left: 10px;
margin-right: 10px;
.Instruction {
display: flex;
align-items: baseline;
gap: 10px;
details {
p {
line-height: 1.4;
font-size: 20px;
color: black;
}
}
p {
font-size: 40px;
text-align: left;
line-height: 1;
margin-top: 5px;
margin-bottom: 5px;
}
li {
line-height: 1.4;
font-size: 20px;
color: black;
}
}
.game {
display: flex;
width: 100%;
gap: 10px;
}
.table-container {
padding: 10px;
flex: 1;
background-color: cadetblue;
table,
th,
td,
tr {
border: 1px solid black;
}
tr:nth-child(even) {
background-color: rgba(0, 0, 0, 0.2);
}
tr:nth-child(odd) {
background-color: rgba(0, 0, 0, 0.125);
}
table {
border-collapse: collapse;
width: 100%;
}
th,
td {
padding: 10px;
text-align: center;
}
th {
background-color: darkseagreen;
}
}
.button-container {
flex: 1;
padding: 10px;
}
.button-container-part {
display: flex;
}
button {
font-family: "Almendra";
font-size: 18px;
width: 100%;
text-align: center;
transition-duration: 0.2s;
padding: 7px;
height: clamp(30px, 15vh, 85px);
}
button:hover {
background-color: darkseagreen;
color: black;
cursor: grab;
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.6);
border: 2px solid black;
}
button:disabled {
pointer-events: none;
}
}
footer {
background-color: moccasin;
width: 100%;
margin-top: 25px;
text-align: center;
border-top: 2px dashed gray;
}
/* ---- Page shell: join, waiting, lobby, trading ---- */
body.page {
display: flex;
flex-direction: column;
min-height: calc(100vh - 40px);
background:
radial-gradient(
circle at 15% 0%,
rgba(255, 228, 181, 0.22),
transparent 38%
),
cadetblue;
}
body.page .Content {
flex: 1;
width: 100%;
max-width: 1024px;
margin: 0 auto;
padding: clamp(12px, 2vw, 20px) 10px 0;
box-sizing: border-box;
}
body.page-join .Content,
body.page-waiting .Content {
max-width: 760px;
}
.panel {
position: relative;
margin: 0 0 16px;
padding: clamp(16px, 2.6vw, 24px);
background-color: moccasin;
background-image: radial-gradient(
circle at top left,
rgba(255, 255, 255, 0.35),
transparent 55%
);
border: 2px dashed gray;
border-radius: 14px;
box-shadow: 0 6px 0 rgba(0, 0, 0, 0.18);
color: #2b2b2b;
}
.panel::before {
content: "";
position: absolute;
inset: 8px;
border: 1px solid rgba(105, 105, 105, 0.22);
border-radius: 9px;
pointer-events: none;
}
.eyebrow {
margin: 0 0 6px;
font-size: 13px;
font-weight: 700;
letter-spacing: 0.18em;
text-transform: uppercase;
color: #7a6242;
}
.panel h2 {
margin: 0 0 8px;
font-size: clamp(26px, 3.4vw, 34px);
line-height: 1.05;
color: #2f4f4f;
}
.panel-subtitle {
margin: 0 0 16px;
font-size: clamp(16px, 1.9vw, 18px);
line-height: 1.45;
color: #4d4d4d;
}
.panel-footnote {
margin: 14px 0 0;
padding-top: 10px;
border-top: 1px dashed rgba(105, 105, 105, 0.45);
font-size: 15px;
line-height: 1.4;
color: #6b5a3e;
}
.room-code {
margin: 4px 0 14px;
padding: 6px 0;
font-size: clamp(42px, 9vw, 64px);
font-weight: 700;
line-height: 1;
letter-spacing: 0.16em;
text-align: center;
color: cornflowerblue;
text-shadow: 2px 2px 0 rgba(47, 79, 79, 0.18);
word-break: break-word;
}
.lobby-status {
margin: 0 0 12px;
font-size: 18px;
min-height: 1.5em;
line-height: 1.4;
}
.lobby-status[data-tone="good"] {
color: darkgreen;
}
.lobby-status[data-tone="bad"] {
color: darkred;
}
/* ---- Join page ---- */
.join-form {
margin: 0;
}
.form-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
margin-bottom: 18px;
}
.field {
display: flex;
flex-direction: column;
gap: 6px;
text-align: left;
}
.field-label {
font-size: 14px;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
color: #6b5a3e;
}
.field input {
width: 100%;
box-sizing: border-box;
padding: 13px 14px;
border: 2px solid #b9a887;
border-radius: 9px;
background-color: #fff8e7;
color: #2b2b2b;
font-family: "Almendra", serif;
font-size: 22px;
transition:
border-color 0.15s ease,
box-shadow 0.15s ease;
}
.field input:focus {
outline: none;
border-color: cornflowerblue;
box-shadow: 0 0 0 3px rgba(100, 149, 237, 0.25);
}
#join-code {
letter-spacing: 0.22em;
text-align: center;
font-weight: 700;
}
/* ---- Buttons and links ---- */
.Content .btn-primary,
.Content .btn-link {
display: block;
width: 100%;
min-height: 56px;
height: auto;
box-sizing: border-box;
padding: 12px 20px;
border: 2px solid #2f4f4f;
border-radius: 10px;
background-color: cornflowerblue;
color: white;
font-family: "Almendra", serif;
font-size: 22px;
font-weight: 700;
letter-spacing: 0.04em;
text-align: center;
text-decoration: none;
cursor: pointer;
box-shadow: 0 5px 0 #2f4f4f;
transition:
transform 0.12s ease,
background-color 0.15s ease,
box-shadow 0.12s ease;
}
.Content .btn-primary:hover:not(:disabled),
.Content .btn-link:hover {
background-color: darkseagreen;
color: black;
border-color: #2f4f4f;
box-shadow: 0 5px 0 #2f4f4f;
}
.Content .btn-primary:active:not(:disabled),
.Content .btn-link:active {
transform: translateY(3px);
box-shadow: 0 2px 0 #2f4f4f;
}
.Content .btn-primary:disabled {
cursor: not-allowed;
opacity: 0.55;
box-shadow: none;
}
/* ---- Waiting page ---- */
.waiting-panel {
text-align: center;
}
.waiting-panel .panel-subtitle {
margin-bottom: 0;
}
.waiting-details {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 14px;
margin: 22px 0;
padding: 16px 0;
border-top: 1px dashed rgba(105, 105, 105, 0.45);
border-bottom: 1px dashed rgba(105, 105, 105, 0.45);
}
.waiting-details .detail {
display: flex;
flex-direction: column;
gap: 4px;
padding: 12px 14px;
border: 2px dashed #b9a887;
border-radius: 12px;
background-color: rgba(255, 248, 231, 0.75);
}
.detail-value {
font-size: clamp(24px, 4vw, 32px);
line-height: 1.1;
color: #2f4f4f;
}
.room-code-inline {
color: cornflowerblue;
letter-spacing: 0.14em;
}
.waiting-indicator {
display: flex;
justify-content: center;
gap: 8px;
margin: 8px 0 14px;
}
.waiting-indicator span {
width: 11px;
height: 11px;
border-radius: 50%;
background-color: cornflowerblue;
animation: waiting-pulse 1.2s ease-in-out infinite;
}
.waiting-indicator span:nth-child(2) {
animation-delay: 0.18s;
}
.waiting-indicator span:nth-child(3) {
animation-delay: 0.36s;
}
@keyframes waiting-pulse {
0%,
80%,
100% {
transform: scale(0.7);
opacity: 0.45;
}
40% {
transform: scale(1);
opacity: 1;
}
}
/* ---- Teacher lobby ---- */
.room-panel {
text-align: center;
}
.roster-heading {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 16px;
margin-bottom: 16px;
text-align: left;
}
.roster-heading h2 {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 0;
}
.roster-heading .panel-subtitle {
max-width: 280px;
margin: 0;
font-size: 16px;
text-align: right;
}
.count-badge {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 34px;
height: 34px;
padding: 0 10px;
border-radius: 999px;
background-color: cornflowerblue;
color: white;
font-size: 19px;
line-height: 1;
}
.page-lobby .table-container {
overflow-x: auto;
background-color: rgba(95, 158, 160, 0.18);
border-radius: 10px;
}
.roster-table {
min-width: 480px;
}
.roster-table th {
letter-spacing: 0.06em;
}
.roster-table td.online {
color: darkgreen;
font-weight: 700;
}
.roster-table td.offline {
color: #5a5a5a;
}
.roster-table td.empty {
padding: 22px 10px;
font-style: italic;
text-align: center;
}
/* ---- Card grid: trading and teacher lobby ---- */
.card-grid {
display: flex;
flex-wrap: wrap;
gap: 14px;
align-items: stretch;
}
.card-grid > .panel {
flex: 1 1 380px;
min-width: 0;
margin: 0;
box-sizing: border-box;
}
.trading-panel {
text-align: center;
}
.trade-preview {
display: flex;
align-items: center;
justify-content: center;
gap: 16px;
margin: 18px 0;
}
.trade-chip {
flex: 0 1 140px;
padding: 14px 10px;
border: 2px dashed #b9a887;
border-radius: 12px;
background-color: rgba(255, 248, 231, 0.75);
}
.trade-chip span {
display: block;
font-size: 14px;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
color: #6b5a3e;
}
.trade-chip strong {
display: block;
font-size: 30px;
line-height: 1.1;
color: #2f4f4f;
}
.trade-arrow {
font-size: 34px;
line-height: 1;
color: cornflowerblue;
}
/* ---- Game status banner ---- */
.game-status {
margin: 0 0 12px;
padding: 10px 14px;
border: 2px dashed gray;
border-radius: 10px;
background-color: moccasin;
color: #2f4f4f;
font-size: 20px;
line-height: 1.35;
}
.game-status[data-tone="good"] {
color: darkgreen;
}
.game-status[data-tone="bad"] {
color: darkred;
}
/* ---- Teacher phase controls ---- */
.phase-controls {
display: flex;
flex-direction: column;
gap: 12px;
}
#phase-status {
margin: 16px 0 0;
font-size: 17px;
}
/* ---- Trading roster ---- */
#trade-roster-panel .table-container {
overflow-x: auto;
border-radius: 10px;
}
#trade-roster-panel .roster-table {
min-width: 100%;
border-collapse: collapse;
width: 100%;
}
#trade-roster-panel .roster-table th,
#trade-roster-panel .roster-table td {
padding: 10px;
border: 1px solid black;
text-align: center;
}
#trade-roster-panel .roster-table th {
background-color: darkseagreen;
}
.roster-table tr.offline-player td {
color: #5a5a5a;
font-style: italic;
}
/* ---- Discovery and trading ---- */
.found-list {
margin: 12px 0 0;
padding: 10px 14px;
border: 2px dashed gray;
border-radius: 10px;
background-color: moccasin;
color: #2f4f4f;
font-size: 18px;
line-height: 1.4;
}
.found-block {
margin-top: 14px;
padding-top: 12px;
border-top: 1px dashed rgba(105, 105, 105, 0.45);
text-align: left;
}
.trade-found-list {
margin: 4px 0 0;
font-size: 19px;
line-height: 1.4;
color: #2f4f4f;
}
.trade-offer-form {
margin: 0;
text-align: left;
}
.trade-offer-form .field {
margin-bottom: 16px;
}
.trade-offer-form select,
.trade-amount input {
width: 100%;
box-sizing: border-box;
padding: 11px 12px;
border: 2px solid #b9a887;
border-radius: 9px;
background-color: #fff8e7;
color: #2b2b2b;
font-family: "Almendra", serif;
font-size: 20px;
}
.trade-offer-form select:focus,
.trade-amount input:focus {
outline: none;
border-color: cornflowerblue;
box-shadow: 0 0 0 3px rgba(100, 149, 237, 0.25);
}
.trade-columns {
display: flex;
align-items: stretch;
gap: 14px;
margin-bottom: 18px;
}
.trade-side {
flex: 1;
min-width: 0;
margin: 0;
padding: 12px 14px 14px;
border: 2px dashed #b9a887;
border-radius: 12px;
background-color: rgba(255, 248, 231, 0.75);
}
.trade-side legend {
padding: 0 6px;
font-size: 14px;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
color: #6b5a3e;
}
.trade-amount {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-top: 10px;
}
.trade-amount span {
font-size: 18px;
color: #2f4f4f;
}
.trade-amount input {
width: 92px;
flex: 0 0 auto;
text-align: center;
}
.offer-list {
display: flex;
flex-direction: column;
gap: 12px;
text-align: left;
}
.offer-card {
padding: 16px;
border: 2px dashed #b9a887;
border-radius: 12px;
background-color: rgba(255, 248, 231, 0.75);
}
.offer-summary {
margin: 0 0 12px;
font-size: 19px;
line-height: 1.45;
color: #2f4f4f;
}
.offer-actions {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.Content .offer-actions .btn-small {
display: inline-block;
width: auto;
min-height: 44px;
height: auto;
padding: 8px 18px;
font-size: 18px;
box-shadow: 0 4px 0 #2f4f4f;
}
.Content .offer-actions .btn-small:active {
transform: translateY(2px);
box-shadow: 0 2px 0 #2f4f4f;
}
.Content .btn-quiet {
display: inline-block;
width: auto;
min-height: 44px;
height: auto;
padding: 8px 18px;
border: 2px solid #8b7a5c;
border-radius: 10px;
background-color: transparent;
color: #5a4a30;
font-family: "Almendra", serif;
font-size: 18px;
font-weight: 700;
cursor: pointer;
box-shadow: 0 4px 0 rgba(90, 74, 48, 0.35);
}
.Content .btn-quiet:hover {
background-color: rgba(255, 248, 231, 0.9);
color: #2b2b2b;
}
/* ---- Small screens ---- */
@media (min-width: 1440px) {
body.page-lobby .Content,
body.page-trading .Content {
max-width: 1120px;
}
}
@media (max-width: 560px) {
body.page {
margin: 10px;
min-height: calc(100vh - 20px);
}
body.page .Content {
padding-left: 0;
padding-right: 0;
}
.form-grid,
.waiting-details {
grid-template-columns: 1fr;
}
.roster-heading {
flex-direction: column;
align-items: flex-start;
}
.roster-heading .panel-subtitle {
text-align: left;
}
.trade-preview {
gap: 8px;
}
.trade-chip {
flex: 1;
}
.trade-columns {
flex-direction: column;
}
.trade-columns > .trade-arrow {
align-self: center;
transform: rotate(90deg);
}
.trade-amount input {
width: 110px;
}
.panel::before {
inset: 6px;
}
.room-code {
letter-spacing: 0.1em;
}
}
@media (prefers-reduced-motion: reduce) {
.waiting-indicator span {
animation: none;
}
}
[hidden] {
display: none !important;
}