/*
  1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
  2. Remove default margins and padding
  3. Reset all borders.
*/

*,
::after,
::before,
::backdrop,
::file-selector-button {
  box-sizing: border-box; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 2 */
  border: 0 solid; /* 3 */
}

/*
  1. Use a consistent sensible line-height in all browsers.
  2. Prevent adjustments of font size after orientation changes in iOS.
  3. Use a more readable tab size.
  4. Use the user's configured `sans` font-family by default.
  5. Use the user's configured `sans` font-feature-settings by default.
  6. Use the user's configured `sans` font-variation-settings by default.
  7. Disable tap highlights on iOS.
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  tab-size: 4; /* 3 */
  font-family: --theme(
    --default-font-family,
    ui-sans-serif,
    system-ui,
    sans-serif,
    'Apple Color Emoji',
    'Segoe UI Emoji',
    'Segoe UI Symbol',
    'Noto Color Emoji'
  ); /* 4 */
  font-feature-settings: --theme(--default-font-feature-settings, normal); /* 5 */
  font-variation-settings: --theme(--default-font-variation-settings, normal); /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
  1. Add the correct height in Firefox.
  2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
  3. Reset the default border style to a 1px solid border.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
  Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
}

/*
  Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
  Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  -webkit-text-decoration: inherit;
  text-decoration: inherit;
}

/*
  Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
  1. Use the user's configured `mono` font-family by default.
  2. Use the user's configured `mono` font-feature-settings by default.
  3. Use the user's configured `mono` font-variation-settings by default.
  4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: --theme(
    --default-mono-font-family,
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    'Liberation Mono',
    'Courier New',
    monospace
  ); /* 1 */
  font-feature-settings: --theme(--default-mono-font-feature-settings, normal); /* 2 */
  font-variation-settings: --theme(--default-mono-font-variation-settings, normal); /* 3 */
  font-size: 1em; /* 4 */
}

/*
  Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
  Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
  1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
  2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
  3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
  Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
  Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
  Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
  Make lists unstyled by default.
*/

ol,
ul,
menu {
  list-style: none;
}

/*
  1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
  2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
      This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
  Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/*
  1. Inherit font styles in all browsers.
  2. Remove border radius in all browsers.
  3. Remove background color in all browsers.
  4. Ensure consistent opacity for disabled states in all browsers.
*/

button,
input,
select,
optgroup,
textarea,
::file-selector-button {
  font: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  border-radius: 0; /* 2 */
  background-color: transparent; /* 3 */
  opacity: 1; /* 4 */
}

/*
  Restore default font weight.
*/

:where(select:is([multiple], [size])) optgroup {
  font-weight: bolder;
}

/*
  Restore indentation.
*/

:where(select:is([multiple], [size])) optgroup option {
  padding-inline-start: 20px;
}

/*
  Restore space after button.
*/

::file-selector-button {
  margin-inline-end: 4px;
}

/*
  Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
*/

::placeholder {
  opacity: 1;
}

/*
  Set the default placeholder color to a semi-transparent version of the current text color in browsers that do not
  crash when using `color-mix(…)` with `currentcolor`. (https://github.com/tailwindlabs/tailwindcss/issues/17194)
*/

@supports (not (-webkit-appearance: -apple-pay-button)) /* Not Safari */ or
  (contain-intrinsic-size: 1px) /* Safari 17+ */ {
  ::placeholder {
    color: color-mix(in oklab, currentcolor 50%, transparent);
  }
}

/*
  Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
  Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
  1. Ensure date/time inputs have the same height when empty in iOS Safari.
  2. Ensure text alignment can be changed on date/time inputs in iOS Safari.
*/

::-webkit-date-and-time-value {
  min-height: 1lh; /* 1 */
  text-align: inherit; /* 2 */
}

/*
  Prevent height from changing on date/time inputs in macOS Safari when the input is set to `display: block`.
*/

::-webkit-datetime-edit {
  display: inline-flex;
}

/*
  Remove excess padding from pseudo-elements in date/time inputs to ensure consistent height across browsers.
*/

::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

::-webkit-datetime-edit,
::-webkit-datetime-edit-year-field,
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-hour-field,
::-webkit-datetime-edit-minute-field,
::-webkit-datetime-edit-second-field,
::-webkit-datetime-edit-millisecond-field,
::-webkit-datetime-edit-meridiem-field {
  padding-block: 0;
}

/*
  Center dropdown marker shown on inputs with paired `<datalist>`s in Chrome. (https://github.com/tailwindlabs/tailwindcss/issues/18499)
*/

::-webkit-calendar-picker-indicator {
  line-height: 1;
}

/*
  Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
  Correct the inability to style the border radius in iOS Safari.
*/

button,
input:where([type='button'], [type='reset'], [type='submit']),
::file-selector-button {
  appearance: button;
}

/*
  Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
  Make elements with the HTML hidden attribute stay hidden by default.
*/

[hidden]:where(:not([hidden='until-found'])) {
  display: none !important;
}

:root{color-scheme:dark;--gold:#e9c27d;--gold-deep:#ab753b;--ink:#15181a;--muted:#9caaa4;--line:rgba(234,203,144,.2)}*{box-sizing:border-box}body{margin:0;font-family:Arial,"Microsoft YaHei",sans-serif;font-size:16px;color:#eee}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button{border:1px solid var(--line);border-radius:8px;padding:11px 18px;background:#263732;color:#ead8b7;transition:filter .15s,transform .15s}button:hover{filter:brightness(1.14)}button:active{transform:translateY(1px)}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #e8bf7a;outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:23px;line-height:1.4}h2{font-size:20px}h3{font-size:18px}small{font-size:13px}input,select,textarea{color:#f5eee0;background:#172723;border:1px solid #4b5d50;border-radius:7px;padding:12px;width:100%;outline:none}textarea{resize:vertical}label{display:block;margin-bottom:17px;font-size:14px;color:#d5d9cf}label input,label select,label textarea{display:block;margin-top:8px}fieldset{border:1px solid var(--line);border-radius:8px;padding:16px;margin:16px 0}legend{padding:0 7px}.check{display:flex;align-items:center;gap:8px;margin:10px 0}.check input{width:17px;height:17px;margin:0}.gold{background:linear-gradient(145deg,#f0d298,#c6964d);color:#352615;border-color:#ffe0a0;font-weight:700;box-shadow:0 3px 12px #0003}.secondary{background:#49675a}.full{width:100%;margin-top:8px}.small{font-size:14px;padding:8px 12px}.text-button{background:none;border:0;padding:7px 4px;color:var(--gold);font-size:14px}.muted{color:var(--muted);line-height:1.7}.eyebrow{font-size:11px;letter-spacing:2px;color:#bca278}.boot{max-width:480px;margin:30vh auto;text-align:center;padding:25px}.boot strong{font-size:32px;color:var(--gold)}.boot p{margin-top:15px}.navigation-view{background:#101815;color:white}.nav-background{position:fixed;inset:0;z-index:-1;background-image:url('/assets/nav-bg.jpg');background-size:100% 100%;background-repeat:no-repeat}.nav-marquee{position:absolute;top:13em;width:100%;overflow:hidden;white-space:nowrap;height:26px;font-size:16px}.nav-marquee span{display:inline-block;min-width:100%;padding-left:100%;animation:marquee 28s linear infinite}@keyframes marquee{to{transform:translateX(-100%)}}.reference-nav{position:absolute;top:15em;width:100%;display:flex;flex-wrap:wrap;padding:0 10px 40px}.nav-cell{width:50%;padding:10px}.nav-cell.wide{width:100%}.nav-button{width:100%;height:38px;line-height:38px;border-radius:2px;padding:0 18px;color:white;font-size:16px;font-weight:600;background:transparent url('/assets/nav-button.png') center/100% 100%;border:0;white-space:nowrap}.nav-button.red{color:#f00}.nav-caption{width:100%;font-size:12px;text-align:center;color:#e4e4e4;margin-top:20px}.hall-view{background:#09120f url('/assets/hall-bg.jpg') center/cover fixed}.app-shell{max-width:520px;min-height:100dvh;margin:auto;background:linear-gradient(#142f25e8,#10271ef5);padding-bottom:90px;box-shadow:0 0 60px #0007}.hall-header{height:86px;padding:15px 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:linear-gradient(135deg,#0e241e,#263e30);color:var(--gold)}.hall-header h1{font-weight:800;text-shadow:0 2px 2px #0008}.hall-header .eyebrow{font-size:9px;letter-spacing:3px}.hall-header>div{text-align:center}.icon-button{background:none;padding:8px;border:0;font-size:25px;color:var(--gold)}.avatar{display:flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;border-radius:50%;border:1px solid #d1b273;background:linear-gradient(135deg,#947744,#3f3e27);color:#fff3ce;font-weight:bold}.avatar.large{width:78px;height:78px;margin:0 auto 20px;font-size:30px}.identity-strip{padding:18px 20px;display:flex;justify-content:space-between;align-items:center}.identity-strip b{font-size:17px}.identity-strip small{display:block;color:#9eada4;margin-top:6px;font-size:12px}.notice{display:flex;gap:10px;align-items:center;margin:0 16px;padding:10px 13px;background:#081a16a8;border:1px solid #d9bd7433;border-radius:7px;color:#d3c5a9}.notice>span{color:var(--gold);font-size:20px}.notice p{font-size:13px;line-height:1.6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hero-banner{margin:18px 16px 6px;position:relative;min-height:139px;overflow:hidden;border:1px solid #bea16d65;border-radius:12px;padding:26px 19px;background:radial-gradient(ellipse at 90% 10%,#a79a4b60,transparent 55%),linear-gradient(120deg,#354c32,#16352a);box-shadow:inset 0 0 30px #0002}.hero-banner span{color:#e0c78f;letter-spacing:3px;font-size:12px}.hero-banner h2{font-family:serif;font-size:27px;color:#f8e3a7;margin:9px 0;text-shadow:0 3px 2px #0006}.hero-banner p{font-size:11px;color:#b7c2ac}.suits{position:absolute;right:18px;top:-5px;font-family:serif;font-size:110px;color:#dbc57a36;transform:rotate(16deg)}.suits i{font-size:72px;position:absolute;right:-7px;top:54px;color:#e4c0755a}.section{padding:22px 16px 0}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.section-heading h2{font-size:18px;letter-spacing:1px;color:#efdcb1}.section-heading h2 small{margin-left:5px;font-size:12px;background:#b1975830;border-radius:10px;padding:2px 6px}.section-heading>span{font-size:11px;color:#9dafa0}.game-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 10px}.game-tile{position:relative;display:flex;flex-direction:column;align-items:center;padding:8px 3px 11px;border-radius:10px;background:linear-gradient(160deg,#5b6d4533,#152e23);border:1px solid #95885344;box-shadow:0 4px 8px #0002}.game-tile img{width:100%;height:80px;object-fit:contain;margin-bottom:8px}.game-tile span{font-size:14px;font-weight:700;color:#f3d38c}.game-tile small{font-size:10px;color:#96a38d;margin-top:5px}.rooms-section{padding-bottom:10px}.room-list-item{display:flex;align-items:center;gap:12px;width:100%;margin-bottom:10px;padding:14px 12px;border-color:#7a865633;text-align:left;background:#2644326e}.room-list-item b{font-size:15px;color:#eee1bd}.room-list-item p{font-size:12px;color:#a1b09a;margin-top:6px}.room-icon{width:42px;height:44px;display:grid;place-items:center;border:1px solid #c3a06455;background:#8c784a2e;color:#e4c789;border-radius:8px;font-size:22px;font-family:serif}.room-meta{margin-left:auto;text-align:right;white-space:nowrap;font-size:13px}.room-meta small{display:block;margin-top:6px;font-size:11px;color:#9baf9b}.empty{padding:30px 10px;text-align:center;border:1px dashed #cab47235;border-radius:10px;color:#adbaaa}.empty>span{font-size:40px;display:block;color:#a68b4f;margin-bottom:10px}.empty p{font-size:14px;margin-bottom:18px}.empty button{font-size:14px}.lobby-foot{font-size:11px;text-align:center;color:#7e957f;padding:25px}.bottom-nav{position:fixed;z-index:5;bottom:0;left:50%;transform:translateX(-50%);width:min(520px,100%);height:75px;padding-bottom:env(safe-area-inset-bottom,0);display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #ba9e6055;background:linear-gradient(#193f2ff7,#0b211afc);box-shadow:0 -5px 30px #0003;backdrop-filter:blur(15px)}.bottom-nav button{background:none;border:0;font-size:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#8caa97;border-radius:0;padding:5px}.bottom-nav button span{font-size:28px;height:33px}.bottom-nav .selected{color:#f1cd7d;background:linear-gradient(#ae904c26,transparent)}.veil{position:fixed;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;background:#000b;padding:20px;backdrop-filter:blur(5px)}.modal{position:relative;max-width:440px;width:100%;max-height:90dvh;overflow:auto;border:1px solid #c4a26466;background:linear-gradient(135deg,#203e30,#101e18);border-radius:16px;padding:30px 26px;color:#e8e7da;box-shadow:0 20px 100px #0009}.modal h2{margin:7px 0 15px;color:#f2d99e}.modal>p{font-size:14px;margin-bottom:15px}.close{position:absolute;top:10px;right:10px;background:none;border:0;font-size:27px;padding:0 7px;color:#c0c7b8}.auth-tabs{display:flex;gap:16px;border-bottom:1px solid var(--line);margin:20px 0}.auth-tabs button{border:0;border-radius:0;background:none;color:#9bada0;padding:10px 4px}.auth-tabs .active{border-bottom:2px solid var(--gold);color:var(--gold)}#toast{position:fixed;z-index:50;left:50%;bottom:100px;transform:translate(-50%,15px);max-width:90vw;width:max-content;padding:12px 20px;border:1px solid #c6ac6c7a;background:#152a22f5;border-radius:8px;box-shadow:0 6px 30px #0005;color:#ffe6ad;font-size:14px;opacity:0;pointer-events:none;transition:.2s}#toast.show{opacity:1;transform:translate(-50%,0)}.profile-card{text-align:center;padding:40px 15px 26px}.profile-card h2{color:#f2d7a2}.profile-card p{font-size:14px;margin:12px 0;color:#acbaac}.badge{font-size:12px;border:1px solid #a98b4f88;padding:4px 12px;border-radius:20px;color:var(--gold)}.menu-list button{display:flex;justify-content:space-between;width:100%;text-align:left;margin-bottom:10px;padding:17px;font-size:15px}.menu-list button span{font-size:13px;color:#a5b69f}.version{text-align:center;color:#718c7b;font-size:12px;padding:25px}.record-item{padding:16px 5px;display:flex;align-items:center;gap:14px;border-bottom:1px solid var(--line)}.record-item b{font-size:15px}.record-item p{font-size:13px;margin:6px 0;color:#aebba7}.record-item small{font-size:12px;color:#92a594}.place{display:grid;place-items:center;font-size:24px;width:42px;height:48px;background:#ffffff0c;border-radius:7px;color:#a9b0a3}.place.winner{background:#c5974d2e;color:#f0ce85}.room-shell{padding-bottom:25px}.room-heading{display:flex;justify-content:space-between;align-items:center;padding:17px 20px}.room-heading p{font-size:13px;color:#b0bea9;margin-top:7px}.room-heading strong{color:#efd3a0;letter-spacing:2px}.room-status{margin:0 16px 12px;padding:10px 12px;border:1px solid var(--line);border-radius:7px;display:flex;justify-content:space-between;align-items:center;font-size:14px;color:#f0cf88}.room-status small{font-size:11px;color:#9db7a0}.table-area{position:relative;padding:20px 14px;display:grid;grid-template-columns:1fr 1fr;gap:12px;background:radial-gradient(#31704666,#0b241d88);margin:0 12px;border-radius:26px;border:6px double #a58a4e55;min-height:330px}.table-logo{grid-column:1/-1;text-align:center;color:#d0b57145;font-size:32px;font-family:serif;font-weight:bold;margin:8px 0 18px}.table-logo small{display:block;font-size:12px;letter-spacing:3px;margin-top:4px}.seat{border:1px solid #81956844;border-radius:10px;padding:12px 8px;min-width:0;background:#092b2077;position:relative}.seat.my-seat{border-color:#c6a366;background:#223d2688}.seat header{display:flex;align-items:center;gap:8px}.seat .avatar{width:30px;height:30px;font-size:13px}.seat header b{font-size:13px;display:block;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.seat header small{display:block;font-size:10px;color:#a9bfa5;margin-top:5px}.cards{display:flex;align-items:center;min-height:65px;padding-top:12px;justify-content:center}.playing-card{display:inline-flex;flex-direction:column;align-items:center;justify-content:space-between;background:#f3efe4;color:#222;border-radius:5px;min-width:32px;width:38px;height:57px;padding:4px 3px;box-shadow:0 2px 4px #0008;font-size:20px;border:1px solid #c0bca5;flex-shrink:0}.playing-card:not(:first-child){margin-left:-9px}.playing-card b{font-size:14px;align-self:flex-start;line-height:1}.playing-card.red-card{color:#b22928}.playing-card.back{justify-content:center;background:repeating-linear-gradient(45deg,#395b7b,#395b7b 3px,#24445b 3px,#24445b 6px);border:2px solid #d3ceae;color:#e5d9af;font-size:25px}.die{font-size:41px;color:#f7ecd1;line-height:1}.await-cards{font-size:12px;color:#839c84;padding:15px 0}.hand-result{text-align:center;color:#f1d48b;font-size:12px;margin-top:10px}.room-actions{padding:18px 16px;display:flex;flex-wrap:wrap;justify-content:center;gap:10px}.room-actions>p{width:100%;text-align:center;color:#bdcdb5;font-size:14px;margin-bottom:4px}.chat-panel{margin:3px 16px;padding:15px;border:1px solid var(--line);border-radius:9px;background:#071e1670}.chat-panel h2{font-size:14px;color:#d0bd91;margin-bottom:12px}.messages{max-height:160px;overflow:auto;margin-bottom:14px}.messages p{font-size:13px;line-height:1.7;margin:4px 0;overflow-wrap:anywhere}.messages b{color:#e4ca8b;margin-right:10px}.messages span{color:#c3cfbd}.chat-panel form{display:flex;gap:8px}.chat-panel input{padding:9px;font-size:14px;min-width:0}.chat-panel button{font-size:13px;padding:8px 12px;white-space:nowrap}.room-footer{font-size:11px;color:#77917c;text-align:center;padding:20px}.rule-copy{line-height:1.9}.admin-view{background:#101b16;color:#d9dfd6}.admin-shell{max-width:1100px;margin:auto;padding:0 24px 50px}.admin-shell .hall-header{margin:0 -24px}.admin-top{display:flex;align-items:center;justify-content:space-between;padding:35px 0 25px;gap:20px}.admin-top h2{font-size:30px;color:#f4dbab;margin:8px 0}.admin-top p{font-size:14px;color:#99ae9d}.admin-tabs{display:flex;gap:10px;overflow:auto;padding-bottom:20px}.admin-tabs button{background:transparent;white-space:nowrap}.admin-tabs button.active{background:#d3ac65;color:#261f14}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:8px 0 25px}.stats-grid>div,.admin-panel{padding:24px;border:1px solid var(--line);border-radius:12px;background:#1c3024}.stats-grid small{display:block;color:#a1b39d;font-size:13px}.stats-grid b{font-size:38px;color:#efd090;display:block;margin-top:13px}.admin-panel h3{color:#e5cc96;margin-bottom:20px}.admin-panel p{line-height:1.9;font-size:14px;margin:10px 0}.admin-panel form{max-width:650px}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:14px;white-space:nowrap}th,td{text-align:left;padding:14px 13px;border-bottom:1px solid var(--line)}th{color:#b4bfad;font-weight:400}td{color:#e3e6d5}@media(max-width:370px){.section{padding-left:12px;padding-right:12px}.identity-strip{padding:16px 14px}.game-grid{gap:8px}.game-tile img{height:69px}.seat header{gap:5px}.seat{padding:10px 5px}.playing-card{min-width:29px;width:32px;height:49px}.hall-header{padding:15px 14px}.admin-shell{padding-left:14px;padding-right:14px}.admin-shell .hall-header{margin:0 -14px}.stats-grid{gap:7px}.stats-grid>div{padding:15px}.stats-grid b{font-size:28px}.admin-top h2{font-size:24px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}.nav-marquee span{padding-left:10px}}

.bottom-nav{grid-template-columns:repeat(4,1fr)}
.guild-shortcut{margin:0 16px 14px;width:calc(100% - 32px);display:flex;align-items:center;gap:12px;text-align:left;background:linear-gradient(110deg,#314d32,#294031);border-color:#b0965d88;padding:14px 12px}.guild-shortcut>span{font-size:35px;color:#f5d88d}.guild-shortcut b{font-size:14px;color:#f1d89f}.guild-shortcut small{display:block;font-size:12px;color:#9eaf97;margin-top:5px}.guild-shortcut strong{margin-left:auto;white-space:nowrap;font-size:12px;color:#e8ce8d}
.guild-banner{background:radial-gradient(at right top,#8a8a4c55,transparent),linear-gradient(130deg,#2b4831,#173525);border:1px solid #b6985655;border-radius:12px;padding:24px 20px;margin-bottom:25px}.guild-banner h2{margin:10px 0;color:#f2d79c;font-family:serif;font-size:27px}.guild-banner p{font-size:14px;color:#aab99c}.guild-banner-actions{display:flex;gap:10px;margin-top:22px}.guild-banner-actions button{font-size:14px;padding:10px 13px}
.guild-card{padding:18px 15px;margin:12px 0;border:1px solid #8d8b5155;border-radius:10px;background:linear-gradient(120deg,#2a463033,#344a3166)}.guild-card-top{display:flex;align-items:center;gap:11px}.guild-card h3{font-size:17px;color:#efd79d;overflow-wrap:anywhere}.guild-id{font-size:12px;letter-spacing:1px;color:#a7b3a2;display:block;margin-top:7px}.guild-emblem{display:grid;place-items:center;flex:none;width:46px;height:51px;background:linear-gradient(140deg,#a88c48,#375338);border:1px solid #d9bd72;border-radius:10px 10px 20px 20px;font-family:serif;font-size:25px;font-weight:bold;color:#fff0bb;box-shadow:inset 0 0 15px #0004}.guild-emblem.large{width:75px;height:86px;font-size:39px;margin:0 auto 18px;border-radius:16px 16px 30px 30px}.guild-chip{font-size:12px;white-space:nowrap;border:1px solid #b49b5c66;background:#a0874e1a;padding:4px 7px;color:#d3bf88;border-radius:20px;margin-left:auto}.guild-card>p{font-size:14px;color:#aab7a2;line-height:1.7;margin:15px 0;white-space:pre-wrap;overflow-wrap:anywhere}.guild-card footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.guild-card footer span{font-size:12px;color:#97aa95;overflow-wrap:anywhere}.guild-card footer button{flex:none}
.guild-search{display:flex;gap:8px;margin-bottom:18px}.guild-search input{font-size:14px;min-width:0}.guild-search button{font-size:14px;white-space:nowrap;padding:10px 14px}.guild-discover-heading{margin-top:30px}.guild-pagination{display:flex;justify-content:center;gap:15px;align-items:center;padding:20px 0;font-size:13px;color:#a3b399}.guild-pending{border:1px solid #bda06a55;border-radius:10px;margin:20px 0;padding:16px}.guild-pending h3{font-size:15px;margin-bottom:12px;color:#e6d3a1}.guild-pending>div{display:flex;justify-content:space-between;align-items:center;padding:10px 0;gap:10px;font-size:14px}.guild-pending small{display:block;margin-top:6px;color:#9fac96;font-size:12px}
.guild-detail-top{display:flex;justify-content:space-between;padding:13px 17px 0}.guild-profile{text-align:center;padding:25px 20px}.guild-profile h2{font-family:serif;color:#f2d79c;font-size:28px}.guild-profile-meta{display:flex;justify-content:center;gap:12px;margin:18px 0;font-size:12px;color:#d1c08b}.guild-profile>p{font-size:14px;color:#aab9a3;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.guild-announcement{margin:0 16px 20px;padding:18px;background:#b6a45b14;border:1px solid #cfaf7155;border-radius:9px}.guild-announcement h3{font-size:14px;color:#e9d091;margin-bottom:10px}.guild-announcement p{font-size:14px;color:#b6c1aa;white-space:pre-wrap;line-height:1.8;overflow-wrap:anywhere}.guild-tabs{display:flex;gap:6px;overflow:auto;padding:0 16px 12px;border-bottom:1px solid var(--line)}.guild-tabs button{flex:none;font-size:14px;padding:9px 11px;background:#182e21;border-radius:6px}.guild-tabs .active{background:#d2b171;color:#26311d;border-color:#e8c67d}.guild-detail-section{padding-top:20px;min-height:180px}
.guild-member-list>article{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:15px 0;border-bottom:1px solid var(--line)}.guild-member-name b{font-size:14px;color:#e1d6b0;overflow-wrap:anywhere}.guild-member-name small{display:block;margin-top:6px;font-size:12px;color:#97ad97}.guild-member-actions{display:flex;gap:6px;flex-wrap:wrap;margin-left:auto}.guild-member-actions .small{padding:7px 9px;font-size:13px}.guild-member-list .avatar{width:35px;height:35px;font-size:14px}
.guild-application,.guild-invitation{padding:17px 14px;background:#15302088;border:1px solid var(--line);border-radius:9px;margin-bottom:12px}.guild-application header,.guild-invitation header{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:14px}.guild-application p{font-size:14px;color:#b4c1a8;line-height:1.8;margin:13px 0;white-space:pre-wrap;overflow-wrap:anywhere}.guild-application small,.guild-invitation small{font-size:12px;color:#8fa48e;display:block;margin:8px 0}.guild-application footer,.guild-invitation footer{display:flex;gap:10px;margin-top:14px}.guild-invitation code,.guild-code{display:block;overflow-wrap:anywhere;white-space:pre-wrap;padding:12px;margin:12px 0;color:#ecd19b;background:#071e1599;border:1px solid #80986e44;border-radius:5px;font-size:13px}
.guild-help{font-size:13px;line-height:1.8;color:#8da88d;margin:15px 0;white-space:pre-wrap}.guild-visitor{padding:22px 18px;border:1px solid var(--line);border-radius:10px;background:#173325}.guild-visitor h3{color:#e8d09a;margin-bottom:14px}.guild-visitor>p{font-size:14px;line-height:1.8;margin-bottom:16px;color:#b8c3ad}.guild-visitor form{margin-top:20px}.guild-bottom-actions{text-align:center;padding:30px 16px}.guild-bottom-actions p{font-size:13px;color:#819d85}.danger{border:1px solid #ae6757;color:#e9ac97;background:#65382e44}.guild-danger-zone{margin-top:30px;padding:22px 0;border-top:1px solid #a6635744}.guild-danger-zone h3{font-size:16px;color:#e8ac94}.guild-danger-zone p{color:#a7b59e;font-size:14px;line-height:1.8;margin:10px 0 15px}.guild-alert{color:#f1bb85!important;border:1px solid #c79b6344;padding:8px 12px;border-radius:6px;margin-top:18px!important}
.guild-event{border-bottom:1px solid var(--line);padding:15px 0}.guild-event b{color:#d7c28a;font-size:14px}.guild-event p{font-size:13px;color:#a7baa0;line-height:1.8;margin:7px 0;overflow-wrap:anywhere}.guild-event small{font-size:12px;color:#819b83}.guild-admin-actions{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0 30px}#guild-settings-form,#guild-create-form{padding-top:4px}
@media(max-width:390px){.guild-member-actions{width:100%;padding-left:45px}.guild-shortcut{gap:8px}.guild-shortcut strong{font-size:11px}.guild-banner-actions{gap:7px}.guild-banner-actions button{font-size:14px}.guild-card{padding:16px 12px}.guild-card h3{font-size:16px}}

.renhai-view{--rh-u:min(1vw,5.2px);background:#2a1027;color:#fff4d8}.rh-stage{position:relative;width:min(100%,520px);min-height:100dvh;margin:auto}.rh-background{position:fixed;inset:0 auto 0 50%;transform:translateX(-50%);width:min(100vw,520px);z-index:-1;background:url('/assets/hall-bg.jpg') center/100% 100% no-repeat}.rh-profile{position:fixed;z-index:20;left:calc(50% - var(--rh-u)*46);top:calc(var(--rh-u)*3);width:calc(var(--rh-u)*60.7);height:calc(var(--rh-u)*16.8);background:url('/assets/renhai/profile.png') center/100% 100% no-repeat}.rh-profile button{border:0;box-shadow:none}.rh-avatar{position:absolute;left:calc(var(--rh-u)*.8);top:calc(var(--rh-u)*.8);width:calc(var(--rh-u)*15.4);height:calc(var(--rh-u)*15.4);padding:0;border-radius:50%;font-family:serif;font-size:calc(var(--rh-u)*6);color:#ffe4a4;background:radial-gradient(at 30% 20%,#798291,#242538 80%)}.rh-nickname{position:absolute;left:calc(var(--rh-u)*19);top:calc(var(--rh-u)*3.4);width:calc(var(--rh-u)*24);height:calc(var(--rh-u)*5.2);text-align:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:0;background:none;color:#fff;font-size:calc(var(--rh-u)*3.5);border-radius:0}.rh-card-count{position:absolute;left:calc(var(--rh-u)*20);top:calc(var(--rh-u)*9.1);display:flex;align-items:center;gap:calc(var(--rh-u)*1.4);height:calc(var(--rh-u)*5.1);color:#ffd45f;font-size:calc(var(--rh-u)*3.2)}.rh-card-count img{height:100%;width:auto}.rh-card-count span{text-shadow:0 1px #482d12}.rh-shop{position:absolute;left:calc(var(--rh-u)*44.1);top:calc(var(--rh-u)*3);width:calc(var(--rh-u)*11.4);height:calc(var(--rh-u)*11.4);padding:0;background:none;border-radius:0}.rh-shop img{width:100%;height:100%;object-fit:contain}.rh-categories{display:grid;grid-template-columns:repeat(2,calc(var(--rh-u)*36));column-gap:calc(var(--rh-u)*10);row-gap:calc(var(--rh-u)*3);width:calc(var(--rh-u)*82);margin:0 auto;padding-top:calc(var(--rh-u)*24);padding-bottom:calc(var(--rh-u)*23)}.rh-category{width:calc(var(--rh-u)*36);height:calc(var(--rh-u)*42);display:block;background:none;border:0;border-radius:0;box-shadow:none;padding:0;line-height:0}.rh-category img{display:block;width:100%;height:100%;object-fit:fill}.rh-bottom{position:fixed;z-index:30;bottom:0;left:50%;transform:translateX(-50%);width:min(100vw,520px);height:calc(var(--rh-u)*19);display:flex;align-items:flex-end;justify-content:space-around;isolation:isolate;padding:0 calc(var(--rh-u)*5)}.rh-bottom:before{content:'';position:absolute;inset:0;z-index:-2;background:linear-gradient(transparent,#160b2c99)}.rh-bottom-plate{position:absolute;left:5%;bottom:0;width:90%;height:calc(var(--rh-u)*9);z-index:-1}.rh-bottom-highlight{position:absolute;bottom:0;left:35%;width:30%;height:calc(var(--rh-u)*9);background:linear-gradient(#d5e1e2aa,#eef7f7b0);clip-path:polygon(10% 0,90% 0,100% 100%,0 100%);z-index:0}.rh-bottom button{position:relative;z-index:1;width:calc(var(--rh-u)*28);height:calc(var(--rh-u)*14.5);display:flex;align-items:flex-end;justify-content:center;padding:0 0 calc(var(--rh-u)*1.3);border:0;border-radius:0;box-shadow:none;background:none}.rh-bottom button img{display:block;width:calc(var(--rh-u)*12);height:calc(var(--rh-u)*12);object-fit:contain}.rh-bottom .rh-create{height:calc(var(--rh-u)*19);padding-bottom:calc(var(--rh-u)*1)}.rh-bottom .rh-create img{width:calc(var(--rh-u)*17);height:calc(var(--rh-u)*17)}.create-room-links{display:flex;justify-content:space-between;margin:12px 0}.create-room-links button{font-size:13px}

html:has(body.renhai-view){scrollbar-width:none}html:has(body.renhai-view)::-webkit-scrollbar{display:none}

.advanced-panel{margin:14px 15px;padding:17px 13px;background:#0a241c99;border:1px solid #ab945a66;border-radius:10px}.advanced-panel h2{font-size:17px;color:#ecd096;margin-bottom:10px}.advanced-panel h2 small{float:right;color:#a7bc9e;font-size:12px}.advanced-panel h3{font-size:14px;color:#d7c295;margin:16px 0 10px}.advanced-panel>p{font-size:13px;line-height:1.8;color:#a8bea2;margin:8px 0 12px}.s13-row{display:flex;align-items:center;gap:8px;padding:10px 7px;margin:7px 0;border:1px solid #69846044;border-radius:7px;min-height:79px}.s13-row.selected{border-color:#dfba6d;background:#c1a75d15}.s13-lane{font-size:12px;padding:6px 5px;background:none;border:0;color:#d8c48f;min-width:61px}.s13-row .cards{padding:0;min-height:55px;justify-content:flex-start;gap:5px;flex-wrap:wrap}.card-button{background:none;padding:0;border:0;border-radius:4px;box-shadow:none;flex:none}.card-button .playing-card{width:36px;height:53px;min-width:30px;margin:0!important}.s13-pool{display:flex;gap:6px;flex-wrap:wrap;margin-top:16px;padding-top:13px;border-top:1px solid var(--line)}.s13-seat .cards{flex-wrap:wrap;gap:1px;justify-content:flex-start}.s13-seat .playing-card{width:26px;min-width:20px;height:39px;font-size:15px;padding:3px}.s13-seat .playing-card b{font-size:10px}.s13-seat .playing-card:not(:first-child){margin-left:-11px}.s13-seat .hand-result{font-size:11px;line-height:1.6}.mj-tile{display:inline-grid;place-items:center;flex:none;width:26px;min-height:38px;margin:1px;padding:3px 1px;border:1px solid #c7bc92;border-bottom:4px solid #346b4b;border-radius:4px;background:linear-gradient(#fffdf0,#e7dfbd);color:#214c35;font-size:13px;font-weight:bold;box-shadow:0 2px 2px #0005}.mj-tile.honor{color:#ac3427}.mj-tile.back{color:#b1c9a4;background:#286d4f;border-color:#9ab58a}.mj-seat-info{font-size:12px;color:#a9bba2;line-height:1.8;min-height:50px}.mj-seat-info .mj-tile{width:19px;min-height:28px;font-size:10px;margin:1px}.mj-meld{display:flex;align-items:center;justify-content:center;margin-top:5px;flex-wrap:wrap}.mj-meld small{font-size:10px;color:#c9bb8c;margin-right:3px}.mj-discard-pool{display:flex;flex-wrap:wrap;gap:1px;padding:10px 5px;min-height:60px;background:#071c14a0;border:1px dashed #82936555;border-radius:6px;color:#7e967e;font-size:12px}.mj-discard-pool .mj-tile{width:20px;min-height:29px;font-size:10px}.mj-hand{display:flex;flex-wrap:wrap;gap:3px;justify-content:center}.tile-button{border:0;padding:0;background:none;box-shadow:none;outline:none}.tile-button .mj-tile{width:30px;min-height:44px;font-size:14px}.tile-button.selected{transform:translateY(-8px);filter:drop-shadow(0 0 5px #f5ce71)}.tile-button.selected .mj-tile{border-color:#eeb94a}.domino{display:flex;flex-direction:column;justify-content:space-around;align-items:center;width:36px;min-width:33px;height:68px;padding:5px 4px;margin:0 3px;background:#181b1c;border:2px solid #adb1a5;border-bottom:4px solid #8e958c;border-radius:5px;box-shadow:0 3px 4px #0008;color:#f7f5e6}.domino>span{display:block;font-size:8px;max-width:24px;line-height:10px;overflow-wrap:anywhere;text-align:center}.domino i{height:1px;background:#7b817c;width:100%}.domino.back{display:grid;place-items:center;color:#788a79;font-size:25px}.room-actions button[data-advanced-action],.room-actions button[data-mj-claim]{font-size:14px}.room-actions:has([data-mj-claim]){border:1px solid #e0bc6866;background:#a29b321a;margin:10px 15px;border-radius:8px}@media(max-width:370px){.advanced-panel{margin:12px 10px;padding:12px 8px}.s13-lane{min-width:50px;font-size:11px}.s13-row .cards{gap:2px}.card-button .playing-card{width:31px;min-width:28px;height:48px}.tile-button .mj-tile{width:27px;min-height:39px}}

