:root {
--bg: #1b0f2e;
--ink: #fff;
--accent: #ffcf3a;
--font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
"Noto Sans CJK SC", "Source Han Sans SC", "WenQuanYi Micro Hei", sans-serif;
}
html, body {
margin: 0;
height: 100%;
background: var(--bg);
overflow: hidden;
position: fixed;
top: 0; right: 0; bottom: 0; left: 0;
touch-action: none;
overscroll-behavior: none;
-webkit-user-select: none;
user-select: none;
-webkit-touch-callout: none;
-webkit-tap-highlight-color: transparent;
font-family: var(--font);
}
body {
display: flex;
align-items: center;
justify-content: center;
}
#game {
display: block;
touch-action: none;
image-rendering: auto;
}
#boot-wait {
position: fixed;
top: 50%; left: 0; right: 0;
margin: -12px 0 0;
text-align: center;
color: rgba(255, 255, 255, 0.6);
font-size: 18px;
font-weight: 700;
pointer-events: none;
}
#game[width] ~ #boot-wait { display: none; }
.overlay {
position: fixed;
top: 0; right: 0; bottom: 0; left: 0;
z-index: 20;
display: flex;
align-items: flex-start;
justify-content: center;
padding: 5vh 16px;
box-sizing: border-box;
background: rgba(12, 4, 26, 0.8);
color: var(--ink);
overflow-y: auto;
overscroll-behavior: contain;
touch-action: pan-y;
}
.overlay[hidden] { display: none; }
.overlay .card {
width: min(420px, 100%);
box-sizing: border-box;
padding: 18px 20px;
border: 3px solid var(--accent);
border-radius: 18px;
background: #2a1240;
text-align: center;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.overlay h2 { margin: 0 0 6px; font-size: 22px; font-weight: 900; }
.overlay p { margin: 0 0 12px; font-size: 15px; opacity: 0.88; }
.overlay .room-msg { margin: 8px 0 0; color: #ff6a8a; font-weight: 800; opacity: 1; }
#invite-link, #room-input, #name-input, #acct-name, #acct-pass, #acct-pass2, #pw-old, #pw-new {
width: 100%;
box-sizing: border-box;
padding: 10px 12px;
font: inherit;
font-size: 18px;
color: #24103d;
background: #fff;
border: 2px solid var(--accent);
border-radius: 10px;
-webkit-user-select: text;
user-select: text;
}
.overlay .row {
display: flex;
flex-wrap: wrap;
gap: 10px;
justify-content: center;
margin-top: 14px;
}
.overlay .row button, .overlay .row .btn {
font: inherit;
font-size: 16px;
font-weight: 900;
padding: 10px 20px;
border: 2px solid #24103d;
border-radius: 999px;
color: #2a1240;
background: linear-gradient(#ffe066, #ff9a1f);
text-decoration: none;
cursor: pointer;
}
.overlay .row .ghost {
color: var(--ink);
background: transparent;
border-color: rgba(255, 255, 255, 0.5);
}
.overlay .row [hidden] { display: none; }
.overlay .row .danger { color: #fff; background: linear-gradient(#ff8a8a, #d81e3c); }
.overlay .out-who { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); color: #ffe7a0; opacity: 1; line-height: 1.6; }
.overlay .out-who[hidden] { display: none; }
.overlay .out-who b { font-size: 20px; color: #fff36a; -webkit-user-select: text; user-select: text; }
#acct-pass, #acct-pass2, #pw-new { margin-top: 10px; }
.sec-card { width: min(480px, 100%); }
.sec-list { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.sec-dev { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); }
.sec-dev.me { background: rgba(255, 210, 58, 0.16); }
.sec-dev .sec-l { flex: 1; min-width: 0; }
.sec-dev b { display: block; font-size: 16px; overflow-wrap: anywhere; }
.sec-dev span { display: block; margin-top: 2px; font-size: 13px; opacity: 0.8; }
.sec-dev .sec-me { flex: none; font-size: 14px; font-weight: 900; color: #fff36a; opacity: 1; margin: 0; }
.sec-dev button { flex: none; font: inherit; font-size: 14px; font-weight: 900; padding: 7px 14px; border: 2px solid #24103d; border-radius: 999px; color: #fff; background: linear-gradient(#ff8a8a, #d81e3c); cursor: pointer; }
.sec-dev button.sure { background: linear-gradient(#ffe066, #ff9a1f); color: #2a1240; }
.sec-dev button:disabled { opacity: 0.5; }
.sec-wait { margin: 8px 0; text-align: center; }
.overlay .room-msg.ok { color: #c8ffb0; }
@media (max-height: 520px) {
.sec-card { padding: 12px 16px; }
.sec-card h2 { font-size: 19px; margin-bottom: 2px; }
.sec-card > p { font-size: 13px; margin-bottom: 8px; }
.sec-list { gap: 6px; }
.sec-dev { padding: 6px 10px; }
.sec-dev b { font-size: 15px; }
.sec-dev span { font-size: 12px; margin-top: 0; }
.sec-card .row { margin-top: 10px; }
.sec-card .row button { padding: 7px 16px; font-size: 15px; }
}
.share-card { width: min(460px, 100%); }
.share-card .tip { margin: 10px 0 0; }
#share-img {
display: block;
max-width: 100%;
max-height: 64vh;
margin: 0 auto;
border-radius: 12px;
-webkit-touch-callout: default;
-webkit-user-select: auto;
user-select: auto;
}
.overlay .name-rule { font-size: 13px; color: #ffd0a0; opacity: 1; }
.acct-tabs { display: flex; margin: -4px 0 12px; border: 3px solid #24103d; border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, 0.08); }
.acct-tabs[hidden] { display: none; }
.acct-tab { flex: 1; font: inherit; font-size: 21px; font-weight: 900; padding: 10px 0; border: 0; color: rgba(255, 255, 255, 0.55); background: transparent; cursor: pointer; }
.acct-tab + .acct-tab { border-left: 3px solid #24103d; }
.acct-tab.login.on { color: #fff; background: linear-gradient(#7fd0ff, #2a7de1); text-shadow: 0 2px 0 rgba(20, 40, 90, 0.5); }
.acct-tab.reg.on { color: #1d4a12; background: linear-gradient(#d6ffc2, #3ccf5a); }
#acct.login .acct-card { border-color: #3aa0ff; }
#acct.reg .acct-card { border-color: #3ccf5a; }
#acct.login #acct-title { color: #9fd8ff; }
#acct.reg #acct-title { color: #c8ffb0; }
.overlay .row #acct-go { min-width: 180px; font-size: 20px; padding: 11px 26px; }
.overlay .row #acct-go.login { color: #fff; background: linear-gradient(#7fd0ff, #2a7de1); }
.overlay .row #acct-go.reg { color: #1d4a12; background: linear-gradient(#d6ffc2, #3ccf5a); }
.overlay .acct-tip { margin: 6px 2px 0; font-size: 13px; color: #ffd0a0; opacity: 1; text-align: left; }
.overlay .acct-tip[hidden] { display: none; }
.acct-link { display: block; margin: 10px auto 0; padding: 4px 10px; font: inherit; font-size: 15px; font-weight: 800; color: #9fd8ff;
background: none; border: 0; text-decoration: underline; cursor: pointer; }
.acct-link[hidden] { display: none; }
.acct-pitch[hidden] { display: none; }
.acct-pitch h2 { font-size: 26px; color: #fff36a; margin-bottom: 8px; }
.acct-pitch ul { list-style: none; margin: 0 0 12px; padding: 0; text-align: left; font-size: 15px; font-weight: 800; line-height: 1.5; }
.acct-pitch li { position: relative; padding-left: 24px; }
.acct-pitch li[hidden] { display: none; }
.acct-pitch li::before { content: '✓'; position: absolute; left: 2px; color: #7cff6b; font-weight: 900; }
.acct-pitch li.gift { color: #fff36a; }
.acct-pitch li.gift::before { content: '★'; color: #ffd23a; }
#acct.pitch #acct-title, #acct.pitch #acct-note { display: none; }
#acct.pitch .row #acct-go { min-width: 220px; font-size: 22px; }
@media (max-height: 520px) {
#acct.overlay { padding-top: 10px; padding-bottom: 10px; }
#acct .acct-card { padding: 12px 18px; }
.acct-tabs { margin: -2px 0 8px; }
.acct-tab { font-size: 19px; padding: 7px 0; }
#acct h2 { font-size: 19px; margin-bottom: 4px; }
#acct p { font-size: 13px; margin-bottom: 8px; }
#acct-name, #acct-pass, #acct-pass2 { padding: 7px 12px; font-size: 16px; }
#acct-pass, #acct-pass2 { margin-top: 7px; }
#acct .row { margin-top: 9px; }
.overlay .row #acct-go { padding: 8px 24px; }
.acct-pitch h2 { font-size: 22px; }
.acct-pitch ul { font-size: 14px; line-height: 1.4; margin-bottom: 8px; }
}
.hp-ov.overlay { padding: 8px 12px; touch-action: pan-x pan-y; }
body.turned .hp-ov.overlay { right: auto; bottom: auto; left: 100vw; left: var(--hp-l, 100vw); width: 100vh; width: var(--hp-w, 100vh);
height: 100vw; height: var(--hp-h, 100vw); -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: rotate(90deg); transform: rotate(90deg); }
.hp-ov .hp-card { width: 100%; max-width: 980px; text-align: left; border-color: #ff6fae; background: linear-gradient(#3a1660, #241044); padding: 10px 14px 14px; }
.hp-ov h2 { font-size: 22px; font-weight: 800; text-shadow: 0 2px 0 #24103d; }
.hp-ov h3 { margin: 0 0 8px; font-size: 18px; font-weight: 900; color: #fff36a; text-shadow: 0 2px 0 #24103d; }
.hp-ov h3 small { font-size: 14px; color: rgba(255, 255, 255, 0.75); font-weight: 800; text-shadow: none; }
.hp-ov h3 small.over { color: #ff6a8a; }
.hp-head { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 8px; }
.hp-head h2 { flex: 1; min-width: 0; margin: 0; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-x { flex: none; width: 44px; height: 44px; font: inherit; font-size: 22px; font-weight: 900; border: 3px solid #24103d; border-radius: 50%;
color: #2a1240; background: linear-gradient(#ffffff, #d9c8ff); cursor: pointer; }
.hp-av { flex: none; box-sizing: border-box; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 3px 0 #24103d; background: #5a3a8e; }
.hp-av[hidden] { display: none; }
.hp-av.big { width: 72px; height: 72px; border-width: 4px; }
.hp-av-none { display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 900; color: rgba(255, 255, 255, 0.6); }
.hp-av-none[hidden] { display: none; }
.hp-frame-box { border-radius: 14px; background: rgba(255, 255, 255, 0.06); border: 3px solid rgba(255, 255, 255, 0.18); overflow: hidden; }
.hp-frame-box[hidden] { display: none; }
.hp-frame { display: block; width: 100%; border: 0; background: transparent; }
.hp-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; align-items: start; margin-top: 10px; }
.hp-pics:empty { display: none; }
.hp-pics img { display: block; width: 100%; box-sizing: border-box; border-radius: 14px; border: 3px solid rgba(255, 255, 255, 0.85); box-shadow: 0 4px 0 #24103d; }
.hp-sec { margin: 0 0 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.07); }
.hp-avrow { display: flex; align-items: center; gap: 14px; }
.hp-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.hp-btn { display: inline-block; font: inherit; font-size: 16px; font-weight: 900; padding: 8px 18px; border: 3px solid #24103d; border-radius: 999px;
color: #2a1240; background: linear-gradient(#ffe066, #ff9a1f); box-shadow: 0 3px 0 #24103d; cursor: pointer; }
.hp-btn[hidden] { display: none; }
.hp-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.hp-btn.ghost { color: #fff; background: linear-gradient(#9a7bff, #5a35c8); }
.hp-hbtn { flex: none; padding: 7px 16px; white-space: nowrap; }
#hpv-msg .hp-lnk { display: block; margin-top: 4px; word-break: break-all; color: #fff; -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
.hp-friend { color: #1d4a12; background: linear-gradient(#c8ffb0, #3ccf5a); }
.hp-friend:disabled { color: #fff; background: rgba(255, 255, 255, 0.14); box-shadow: none; border-color: rgba(255, 255, 255, 0.3); cursor: default; }
.hp-show { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.07); cursor: pointer; }
.hp-show b { flex: none; font-size: 17px; color: #fff36a; text-shadow: 0 2px 0 #24103d; }
.hp-show small { min-width: 0; font-size: 14px; color: rgba(255, 255, 255, 0.8); }
.hp-show input { flex: none; position: relative; width: 54px; height: 30px; margin: 0; border: 3px solid #24103d; border-radius: 999px; background: #6b5a8e;
-webkit-appearance: none; appearance: none; cursor: pointer; transition: background .15s; }
.hp-show input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; }
.hp-show input:checked { background: #3ccf5a; }
.hp-show input:checked::after { left: 26px; }
.hp-show input:disabled { opacity: .5; }
#hpe-pic-add { margin-top: 10px; background: linear-gradient(#c8ffb0, #3ccf5a); color: #1d4a12; }
.hpe-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px; align-items: start; }
.hpe-code { display: flex; flex-direction: column; }
.hp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.hp-tiles:empty { display: none; }
.hp-tile { position: relative; border-radius: 12px; overflow: hidden; border: 3px solid #fff; background: #24103d; aspect-ratio: 1; }
.hp-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hp-tile button { position: absolute; font: inherit; font-weight: 900; border: 2px solid #24103d; cursor: pointer; }
.hp-del { top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 50%; font-size: 15px; color: #fff; background: linear-gradient(#ff8a8a, #d81e3c); }
.hp-up { top: 4px; left: 4px; width: 30px; height: 30px; border-radius: 50%; font-size: 13px; color: #2a1240; background: linear-gradient(#ffffff, #d9c8ff); }
.hp-ins { left: 4px; right: 4px; bottom: 4px; padding: 3px 0; border-radius: 999px; font-size: 13px; color: #2a1240; background: linear-gradient(#fff36a, #ffb800); }
.hp-name { position: absolute; left: 4px; right: 4px; bottom: 34px; padding: 1px 6px; border-radius: 8px; font-size: 12px; font-weight: 800;
color: #fff; background: rgba(36, 16, 61, 0.78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
#hpe-html { display: block; width: 100%; box-sizing: border-box; min-height: 210px; padding: 10px 12px; resize: vertical;
font: 14px/1.5 ui-monospace, Menlo, Consolas, monospace; color: #24103d; background: #fff; border: 3px solid var(--accent); border-radius: 12px;
-webkit-user-select: text; user-select: text; }
#hpe-frame { margin-top: 10px; }
.hp-sec .row { margin-top: 8px; justify-content: flex-start; }
.hp-ov .row button { font-size: 16px; padding: 8px 18px; box-shadow: 0 3px 0 #24103d; }
.hp-ov .room-msg { margin: 0 0 8px; text-align: center; }
.hp-quick { background: linear-gradient(135deg, rgba(255, 111, 174, 0.28), rgba(122, 92, 255, 0.28)); border: 3px dashed rgba(255, 255, 255, 0.45); }
.hp-quick p { margin: 0 0 8px; font-size: 14px; }
.hp-wlist { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding: 10px; border-radius: 14px; background: rgba(0, 0, 0, 0.22); }
.hp-wlist[hidden] { display: none; }
.hp-w { font: inherit; font-size: 15px; font-weight: 900; padding: 7px 14px; border: 2px solid #24103d; border-radius: 999px; color: #2a1240;
background: linear-gradient(#c8ffb0, #3ccf5a); box-shadow: 0 3px 0 #24103d; cursor: pointer; }
.hpg-ov { z-index: 22; }
.hpg-ov .hpg-card { display: flex; flex-direction: column; height: 100%; max-width: 1000px; padding: 10px 12px 12px; }
.hpg-frame { flex: 1; width: 100%; min-height: 0; border: 0; border-radius: 12px; background: #fff; }
@media (min-height: 560px) and (min-aspect-ratio: 1/1) {
.hp-ov.overlay { padding: 24px; }
.hp-ov .hp-card { padding: 14px 18px 18px; }
.hp-ov h2 { font-size: 26px; }
.hp-av { width: 52px; height: 52px; }
.hp-head { min-height: 52px; }
}
@media (max-aspect-ratio: 1/1) {
body:not(.turned) .hp-ov.overlay { padding: 4vh 10px; }
body:not(.turned) .hpe-cols { grid-template-columns: minmax(0, 1fr); }
}
