:root {
  font-family: "DM Sans", sans-serif;
  color: #183532;
  background: #f6f2e9;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --deep: #102c2a;
  --deep-soft: #1d403b;
  --sand: #f2c879;
  --paper: #f6f2e9;
  --muted: #a7b6a9;
  --serif: "MedievalSharp", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.site-header {
  height: 82px;
  padding: 0 7.1%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--deep);
  color: #f9f4e8;
  position: relative;
  z-index: 3;
}
.brand { display: inline-flex; gap: 11px; align-items: center; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid #d5ad62; border-radius: 50%; color: #f2c879;
  font-family: var(--serif); font-size: 14px; letter-spacing: -2px; padding-right: 2px;
}
.brand-name { color: #dddace; font-family: var(--serif); font-size: 17px; }
.brand-name strong { color: #f2c879; font-weight: 400; }
.main-nav { display: flex; gap: 37px; color: #c4cfc4; font-size: 12px; }
.main-nav a:hover, .text-link:hover { color: #f2c879; }
.nav-cta { padding: 11px 16px; border: 1px solid #526b60; border-radius: 2px; font-size: 11px; }
.nav-cta span { color: #f2c879; font-size: 15px; vertical-align: -1px; margin-right: 5px; }
.account-control { display: flex; align-items: center; gap: 9px; }
.account-control [hidden] { display: none; }
.google-signin { min-height: 36px; }
.account-user { display: flex; align-items: center; gap: 7px; color: #f9f4e8; font-size: 10px; }
.account-user img { width: 26px; height: 26px; border-radius: 50%; }
.account-user a { color: #f9f4e8; }
.account-user a:hover { color: var(--sand); }
.account-signout { padding: 7px 8px; border: 1px solid #526b60; background: transparent; color: #d6ddcf; font-size: 9px; cursor: pointer; }
.account-message { max-width: 145px; margin: 0; color: #e3d6b8; font-size: 9px; line-height: 1.4; }

.hero {
  min-height: 589px; background: var(--deep); color: #f6f2e9; position: relative;
  display: flex; overflow: hidden; padding: 85px 7.1% 69px;
}
.hero-copy { width: 50%; max-width: 610px; z-index: 1; padding: 17px 0 20px 4.3%; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 20px; color: #d7c9a7; font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow-line { display: inline-block; width: 25px; height: 1px; background: #d9b969; }
.hero h1, .section-heading h2, .arcade-copy h2 {
  margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(49px, 5.7vw, 78px); letter-spacing: -.045em; line-height: .99;
}
.hero h1 em, .section-heading h2 em, .arcade-copy h2 em { color: var(--sand); font-weight: 400; }
.hero-description { max-width: 350px; margin: 22px 0 26px; color: #bdc9bd; font-size: 13px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 25px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 19px; padding: 13px 17px; border: 0; border-radius: 2px; font-size: 10px; font-weight: 700; cursor: pointer; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-sand { background: var(--sand); color: #27352b; }
.button-sand:hover { background: #ffda91; }
.text-link { color: #d6ddcf; font-size: 10px; }
.text-link span { margin-left: 5px; color: var(--sand); }
.hero-note { display: flex; gap: 8px; align-items: center; margin-top: 49px; color: #96a99c; font-size: 9px; letter-spacing: .05em; }
.online-dot { width: 6px; height: 6px; border-radius: 50%; background: #c6d48d; box-shadow: 0 0 9px #c6d48d; }
.hero-art { position: absolute; right: 0; top: 0; width: 55%; height: 100%; overflow: hidden; background: linear-gradient(180deg,#e8bd77 0%,#f0ca8c 38%,#bec5a2 38.2%,#738b70 55%,#356862 55.2%,#153b3c 100%); }
.hero-art::before { content: ""; position: absolute; inset: 0; opacity: .14; background: repeating-linear-gradient(0deg,transparent 0 4px,#fff 5px,transparent 6px 9px); }
.sun { position: absolute; width: 113px; height: 113px; border-radius: 50%; background: #f5e0a9; top: 57px; right: 23%; box-shadow: 0 0 70px #fff1c5; }
.bird { position: absolute; color: #445649; font-size: 30px; transform: rotate(-20deg); }
.bird-one { top: 99px; right: 47%; }.bird-two { top: 72px; right: 42%; font-size: 22px; }
.castle { position: absolute; z-index: 1; right: 20%; bottom: 42%; width: 230px; height: 190px; filter: drop-shadow(5px 8px 0 rgb(52 66 50 / 16%)); }
.castle-wall { position: absolute; bottom: 0; left: 28px; width: 174px; height: 103px; background: #e6d6b1; border: 3px solid #8f876c; border-bottom: 0; }
.castle-wall::before { content: ""; position: absolute; top: -13px; left: -5px; width: 178px; height: 17px; background: repeating-linear-gradient(90deg,#d9c9a6 0 20px,#827c65 21px 24px); }
.tower { position: absolute; bottom: 85px; width: 53px; height: 91px; background: #daccaa; border: 3px solid #8f876c; }
.tower::before { content: ""; position: absolute; left: -8px; top: -17px; width: 63px; height: 18px; background: repeating-linear-gradient(90deg,#ddcdaa 0 14px,#817b64 15px 18px); }
.tower::after { content: ""; position: absolute; width: 0; height: 0; border-left: 29px solid transparent; border-right: 29px solid transparent; border-bottom: 42px solid #915f45; left: -5px; top: -57px; }
.tower i { position: absolute; left: 17px; top: 27px; width: 14px; height: 22px; border-radius: 8px 8px 0 0; background: #596a59; }
.tower-left { left: 21px; height: 79px; }.tower-right { right: 20px; height: 79px; }
.tower-main { z-index: 2; left: 88px; height: 114px; width: 57px; }
.tower-main::after { border-left-width: 32px; border-right-width: 32px; border-bottom-width: 49px; }
.tower-main i { left: 19px; top: 29px; }
.gate { position: absolute; bottom: 0; left: 69px; width: 35px; height: 57px; border-radius: 20px 20px 0 0; background: #655f4e; border: 3px solid #8f876c; }
.cliff { position: absolute; height: 28%; left: 0; right: 0; bottom: 31%; background: #777e5b; clip-path: polygon(0 44%,14% 27%,24% 34%,37% 14%,50% 26%,63% 2%,74% 17%,85% 7%,100% 31%,100% 100%,0 100%); }
.wave { position: absolute; left: -6%; width: 115%; border-radius: 50% 45% 0 0 / 24% 27% 0 0; }
.wave-back { height: 36%; bottom: 7%; transform: rotate(-5deg); background: #487d75; }
.wave-front { height: 26%; bottom: -5%; transform: rotate(4deg); background: #214f4c; }
.wave-front::before { content: ""; position: absolute; left: 7%; top: 18%; width: 44%; height: 19px; border-top: 2px solid #9bb59c; border-radius: 50%; transform: rotate(-4deg); }
.art-caption { position: absolute; z-index: 2; left: 10%; bottom: 26px; width: 78%; display: flex; justify-content: space-between; color: #d9e3d2; font-size: 7px; letter-spacing: .2em; }
.art-caption span:last-child { color: #f1d18c; font-size: 13px; }
.hero-bottom { position: absolute; left: 7.1%; bottom: 23px; display: flex; gap: 12px; align-items: center; color: #87998d; font-size: 7px; letter-spacing: .2em; }
.scroll-arrow { color: var(--sand); font-size: 14px; }.hero-bottom-rule { width: 56px; height: 1px; background: #52685c; }

.section-wrap { padding-left: 11.4%; padding-right: 11.4%; }
.hub-section { padding-top: 91px; padding-bottom: 92px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; }
.eyebrow-dark { color: #858575; }
.section-heading h2, .arcade-copy h2 { color: #203c35; font-size: clamp(38px,4.5vw,58px); }
.section-heading h2 em, .arcade-copy h2 em { color: #637d5d; }
.section-intro { max-width: 252px; margin: 0 0 6px; color: #7b7d70; font-size: 11px; line-height: 1.9; }
.hub-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; margin-top: 41px; }
.hub-card { min-height: 174px; position: relative; padding: 20px 18px 17px; border: 1px solid #e5dfd2; background: #fbf9f3; transition: transform .2s,border-color .2s; }
.hub-card:hover { transform: translateY(-4px); border-color: #bfa772; }
.hub-card-top { display: flex; justify-content: space-between; align-items: start; }
.hub-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #e9e8d9; font-size: 17px; }
.hub-arrow { color: #9e9d8d; font-size: 17px; }
.hub-card h3 { margin: 16px 0 6px; color: #29413a; font-family: var(--serif); font-size: 19px; font-weight: 400; }
.hub-card p { margin: 0; color: #868779; font-size: 9px; line-height: 1.6; }
.hub-count { display: block; margin-top: 14px; color: #69795d; font-size: 8px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.loading-message { grid-column: 1/-1; color: #898878; font-size: 12px; }

.rankings-section { padding-top: 74px; padding-bottom: 78px; background: #eee9dd; }
.rankings-heading { align-items: end; }
.rank-region-control { display: grid; gap: 6px; color: #77796e; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.rank-region-control select { min-width: 205px; padding: 10px 12px; border: 1px solid #d9d2c3; background: #fbf9f3; color: #29413a; font-size: 11px; letter-spacing: normal; text-transform: none; }
.ranking-board { margin-top: 30px; border: 1px solid #ddd6c8; background: #fbf9f3; }
.ranking-game-tabs { display: flex; gap: 20px; padding: 0 21px; border-bottom: 1px solid #e5dfd2; }
.ranking-game-tab { position: relative; padding: 16px 0; border: 0; background: transparent; color: #29413a; font-size: 11px; font-weight: 700; cursor: pointer; }
.ranking-game-tab[aria-selected="true"]::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: #738c67; content: ""; }
.ranking-game-tab:disabled { color: #99988b; cursor: not-allowed; }
.ranking-list-heading, .ranking-row { display: grid; grid-template-columns: minmax(0, 1fr) 205px; align-items: center; gap: 16px; }
.ranking-list-heading { padding: 13px 21px; color: #898878; font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ranking-list { margin: 0; padding: 0; list-style: none; }
.ranking-row { min-height: 68px; padding: 10px 21px; border-top: 1px solid #eee9dd; color: #29413a; }
.ranking-player { display: flex; min-width: 0; align-items: center; gap: 12px; }
.ranking-position { width: 20px; color: #858575; font-family: var(--serif); font-size: 18px; text-align: center; }
.ranking-avatar { width: 38px; height: 38px; border: 1px solid #d6bd7d; border-radius: 50%; object-fit: cover; }
.ranking-avatar-placeholder { display: grid; place-items: center; background: #e9e8d9; color: #637d5d; }
.ranking-player-name { overflow: hidden; font-family: var(--serif); font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.ranking-riot-id { display: block; margin-top: 3px; color: #858575; font-family: "DM Sans", sans-serif; font-size: 9px; }
.ranking-tier { color: #536c4f; font-size: 11px; font-weight: 700; }
.ranking-lp { display: block; margin-top: 4px; color: #858575; font-size: 9px; font-weight: 400; }
.ranking-empty { padding: 24px 21px; color: #77796e; font-size: 11px; }
.ranking-footnote { margin: 0; padding: 13px 21px; border-top: 1px solid #e5dfd2; color: #858575; font-size: 9px; line-height: 1.6; }

.shoreline-section { padding: 79px 0 88px; color: #f6f2e9; background: #183c37; }
.shoreline-inner { padding-left: 11.4%; padding-right: 11.4%; }
.shoreline-heading { align-items: end; }
.shoreline-heading .eyebrow { color: #b3bea9; }.shoreline-heading h2 { color: #f6f2e9; font-size: clamp(38px,4.2vw,53px); }
.shoreline-heading h2 em { color: #ecc77e; }
.filter-row { display: flex; align-items: center; justify-content: space-between; margin-top: 39px; padding-bottom: 13px; border-bottom: 1px solid #446057; }
.filter-tabs { display: flex; gap: 22px; overflow-x: auto; }
.filter-button { padding: 5px 0; border: 0; background: none; color: #a9b6a9; font-size: 9px; white-space: nowrap; cursor: pointer; }
.filter-button[aria-pressed="true"] { color: #f2c879; border-bottom: 1px solid #f2c879; }
.post-count { color: #92a397; font-size: 8px; }
.media-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 20px; }
.media-card { min-width: 0; border: 1px solid #49645a; background: #214740; cursor: pointer; transition: transform .2s,border-color .2s; }
.media-card:hover { transform: translateY(-4px); border-color: #d1b36d; }
.media-visual { display: grid; position: relative; place-items: center; height: 195px; overflow: hidden; background: #d6c8a8; }
.media-visual img, .media-visual video { width: 100%; height: 100%; object-fit: cover; }
.media-placeholder { display: grid; width: 100%; height: 100%; place-items: center; background: linear-gradient(145deg,#e7c984,#568076); font-size: 42px; }
.media-type { position: absolute; top: 12px; left: 12px; padding: 5px 8px; color: #f7f2e8; background: rgb(16 44 42 / 78%); font-size: 7px; letter-spacing: .13em; text-transform: uppercase; }
.media-info { padding: 15px 16px 13px; }
.media-hub-name { color: #e4c477; font-size: 8px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.media-info h3 { overflow: hidden; margin: 7px 0 10px; color: #f2eee3; font-family: var(--serif); font-size: 18px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.media-meta { display: flex; justify-content: space-between; gap: 8px; color: #a9b6a9; font-size: 8px; }
.media-audio { color: #e4c477; }
.profile-link { color: inherit; text-decoration: underline; text-decoration-color: rgb(226 196 119 / 55%); text-underline-offset: 2px; }
.profile-link:hover { color: #f2c879; }
.empty-state { grid-column: 1/-1; padding: 33px; border: 1px dashed #638076; color: #adbaae; text-align: center; font-size: 11px; }

.arcade-section { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 9%; padding-top: 96px; padding-bottom: 99px; }
.arcade-copy h2 { font-size: clamp(40px,4.3vw,57px); }
.arcade-copy > p:not(.eyebrow) { max-width: 380px; margin: 20px 0 24px; color: #818273; font-size: 11px; line-height: 1.9; }
.button-dark { background: #183c37; color: #f5f0e4; }
.button-dark:hover { background: #29574d; }
.game-preview { height: 280px; position: relative; overflow: hidden; background: #edc77e; box-shadow: 8px 10px 0 #e4dfd1; }
.game-sky { position: absolute; inset: 0 0 36%; background: linear-gradient(#e5b76e,#f2d28e); }
.game-sun { position: absolute; top: 24px; right: 17%; width: 55px; height: 55px; border-radius: 50%; background: #fff0bd; }
.game-cloud { position: absolute; top: 56px; left: 16%; width: 42px; height: 8px; border-radius: 50%; background: #fff4d5; opacity: .75; }
.cloud-two { left: 66%; top: 98px; width: 60px; }
.game-hill { position: absolute; left: -8%; width: 120%; height: 42%; border-radius: 50% 50% 0 0; }
.hill-back { bottom: 12%; background: #638b72; transform: rotate(-4deg); }
.hill-front { bottom: -12%; background: #27574d; transform: rotate(3deg); }
.game-board { position: absolute; left: 11%; top: 27px; width: 61%; height: 204px; padding: 20px; border: 1px solid rgb(246 242 233 / 45%); background: rgb(18 51 47 / 84%); color: #f5f0e4; }
.game-label { color: #e8c778; font-size: 7px; letter-spacing: .2em; }
.game-title { display: block; margin-top: 13px; font-family: var(--serif); font-size: 34px; line-height: .87; }
.game-runner { position: absolute; right: 14px; top: 55px; font-size: 40px; transform: scaleX(-1); }
.game-instruction { position: absolute; left: 20px; bottom: 18px; color: #c9d0c2; font-size: 7px; letter-spacing: .15em; }
.game-open { position: absolute; z-index: 2; right: 15px; bottom: 15px; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: #f2c879; color: #193b36; }

.site-footer { min-height: 95px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 7.1%; background: #102c2a; color: #bec9bd; }
.footer-brand .brand-mark { width: 32px; height: 32px; }.footer-brand .brand-name { font-size: 14px; }
.site-footer p { color: #8fa096; font-family: var(--serif); font-size: 13px; }
.site-footer .riot-legal { max-width: 330px; margin: 0; color: #82948a; font-family: "DM Sans", sans-serif; font-size: 8px; line-height: 1.5; }
.footer-star { color: #e7c475; }

.upload-dialog, .media-dialog { width: min(92vw, 480px); max-height: 90vh; padding: 0; border: 0; background: transparent; color: #203c35; }
.upload-dialog::backdrop, .media-dialog::backdrop { background: rgb(9 28 26 / 77%); backdrop-filter: blur(4px); }
.dialog-card { position: relative; padding: 34px; background: #f8f5ed; }
.dialog-card h2 { margin: 0 0 19px; font-family: var(--serif); font-size: 36px; font-weight: 400; }
.dialog-card h2 em { color: #637d5d; }
.dialog-close { position: absolute; top: 11px; right: 14px; width: 32px; height: 32px; border: 0; background: transparent; color: #54645a; font-size: 27px; cursor: pointer; }
.field-label { display: block; margin: 13px 0 6px; color: #70766b; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dialog-card input:not([type="file"]), .dialog-card select, .voice-author { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid #dfdacd; border-radius: 0; outline-color: #738c67; background: #fffdf7; color: #263b33; font-size: 11px; }
.account-post-note { margin: 0 0 13px; color: #637261; font-size: 11px; line-height: 1.6; }
.file-drop { display: grid; place-items: center; gap: 7px; margin-top: 18px; padding: 19px; border: 1px dashed #9eaa91; color: #43564a; text-align: center; cursor: pointer; }
.file-drop .file-icon { color: #6f815c; font-size: 23px; }
.file-drop strong { font-size: 11px; }.file-drop span:last-of-type { color: #8a8a79; font-size: 9px; }
.file-drop input { width: 220px; max-width: 100%; color: #77796e; font-size: 9px; }
.form-message { min-height: 14px; margin: 8px 0 0; color: #a33c32; font-size: 10px; }
.dialog-submit { width: 100%; margin-top: 5px; }
.media-dialog { width: min(92vw, 740px); background: #f8f5ed; }
.media-close { z-index: 2; color: white; background: rgb(16 44 42 / 75%); }
.game-dialog { position: relative; width: min(94vw, 860px); max-width: 860px; padding: 0; border: 1px solid #8e9d7e; background: #102c2a; }
.game-dialog iframe { display: block; width: 100%; height: min(720px, 88vh); border: 0; }
.game-close { z-index: 2; top: 9px; right: 9px; border-radius: 50%; background: rgb(16 44 42 / 84%); color: #f2c879; }
.detail-media { display: grid; place-items: center; max-height: 53vh; min-height: 200px; overflow: hidden; background: #102c2a; }
.detail-media img, .detail-media video { display: block; max-width: 100%; max-height: 53vh; }
.detail-content { padding: 23px 28px 27px; }
.detail-heading { display: flex; justify-content: space-between; gap: 15px; align-items: start; }
.detail-heading h2 { margin: 5px 0 4px; font-family: var(--serif); font-size: 26px; font-weight: 400; }
.detail-caption { margin: 12px 0; color: #77796e; font-size: 11px; line-height: 1.7; }
.voice-list { display: grid; gap: 8px; max-height: 125px; overflow-y: auto; margin: 15px 0; }
.voice-row { display: flex; align-items: center; gap: 10px; padding: 8px; background: #eeece3; }
.voice-row span { min-width: 75px; color: #596957; font-size: 9px; }.voice-row audio { width: 100%; height: 30px; }
.voice-form { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding-top: 14px; border-top: 1px solid #e3ded2; }
.voice-form input[type="text"] { flex: 1; min-width: 120px; }
.voice-form input[type="file"] { max-width: 180px; color: #7f8074; font-size: 9px; }
.voice-account-note { flex: 1; min-width: 150px; margin: 0; color: #596957; font-size: 10px; }
.voice-message { width: 100%; margin: 0; color: #a33c32; font-size: 10px; }
.record-button { padding: 10px 13px; border: 1px solid #9ba48d; background: transparent; font-size: 9px; cursor: pointer; }
.record-button[data-recording="true"] { border-color: #aa4e3e; color: #aa4e3e; }
.voice-submit { padding: 10px 12px; font-size: 9px; }

.profile-page { min-height: 100vh; background: var(--paper); }
.profile-header { height: 76px; }
.profile-shell { width: min(1040px, 86%); min-height: calc(100vh - 171px); margin: 0 auto; padding: 54px 0 80px; }
.profile-shell > .eyebrow { margin-bottom: 15px; }
.profile-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 32px; align-items: start; padding: 35px; border: 1px solid #e5dfd2; background: #fbf9f3; }
.profile-portrait-wrap { width: 140px; height: 140px; padding: 5px; border: 1px solid #d6bd7d; border-radius: 50%; }
.profile-portrait { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.profile-portrait-placeholder { display: grid; place-items: center; background: #e9e8d9; color: #637d5d; font-size: 42px; }
.profile-identity h1 { margin: -7px 0 4px; color: #203c35; font-family: var(--serif); font-size: clamp(36px, 5vw, 54px); font-weight: 400; }
.profile-identity .eyebrow { margin-bottom: 12px; }
.profile-joined { margin: 0; color: #858575; font-size: 10px; }
.profile-bio { max-width: 620px; margin: 20px 0 0; color: #596957; font-size: 13px; line-height: 1.8; white-space: pre-wrap; }
.profile-edit-form { max-width: 600px; margin-top: 23px; padding-top: 19px; border-top: 1px solid #e5dfd2; }
.profile-edit-form .field-label { margin-top: 0; }
.profile-edit-form textarea { display: block; width: 100%; min-height: 78px; padding: 10px 12px; resize: vertical; border: 1px solid #dfdacd; background: #fffdf7; color: #263b33; font: inherit; font-size: 11px; }
.profile-edit-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.profile-edit-message { color: #637261; font-size: 10px; }
.profile-contributions, .profile-voice-section { margin-top: 58px; }
.profile-riot-section { margin-top: 58px; }
.profile-section-heading h2 { margin: 0; color: #203c35; font-family: var(--serif); font-size: 38px; font-weight: 400; }
.profile-section-heading h2 em { color: #637d5d; font-weight: 400; }
.profile-section-heading .eyebrow { margin-bottom: 10px; }
.profile-media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 23px; }
.profile-media-card { min-width: 0; border: 1px solid #e5dfd2; background: #fbf9f3; transition: transform .2s, border-color .2s; }
.profile-media-card:hover { transform: translateY(-3px); border-color: #bfa772; }
.profile-media-visual { position: relative; height: 195px; overflow: hidden; background: #d6c8a8; }
.profile-media-visual img, .profile-media-visual video { width: 100%; height: 100%; object-fit: cover; }
.profile-media-info { padding: 14px 16px; }
.profile-media-info h3 { overflow: hidden; margin: 7px 0 10px; color: #29413a; font-family: var(--serif); font-size: 17px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.profile-media-info > span:last-child { color: #858575; font-size: 9px; }
.profile-empty { grid-column: 1 / -1; padding: 28px; border: 1px dashed #c8c2b4; color: #77796e; font-size: 11px; text-align: center; }
.profile-voice-list { display: grid; gap: 9px; margin-top: 22px; }
.profile-voice-row { display: flex; align-items: center; gap: 13px; padding: 15px 17px; border: 1px solid #e5dfd2; background: #fbf9f3; color: #29413a; }
.profile-voice-row > span:nth-child(2) { display: grid; flex: 1; gap: 5px; }
.profile-voice-row strong { font-family: var(--serif); font-size: 15px; font-weight: 400; }
.profile-voice-row small { color: #858575; font-size: 9px; }
.profile-voice-icon { color: #637d5d; font-size: 20px; }
.profile-riot-content { display: grid; gap: 15px; margin-top: 22px; }
.profile-riot-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 19px; border: 1px solid #e5dfd2; background: #fbf9f3; }
.profile-riot-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.profile-riot-mark { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border: 1px solid #d6bd7d; border-radius: 50%; color: #637d5d; font-family: var(--serif); font-size: 13px; }
.profile-riot-identity > span:last-child { display: grid; gap: 4px; min-width: 0; }
.profile-riot-identity strong { overflow: hidden; color: #29413a; font-size: 12px; text-overflow: ellipsis; }
.profile-riot-identity small { color: #858575; font-size: 9px; }
.profile-riot-rank { margin: 0; color: #536c4f; font-size: 11px; font-weight: 700; }
.profile-riot-rank small { display: block; margin-top: 5px; color: #858575; font-size: 9px; font-weight: 400; }
.riot-link-form { max-width: 600px; padding: 20px; border: 1px solid #e5dfd2; background: #fbf9f3; }
.riot-link-intro { margin: 0 0 14px; color: #637261; font-size: 11px; line-height: 1.7; }
.riot-link-form select,.riot-link-form input { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid #dfdacd; background: #fffdf7; color: #263b33; font-size: 11px; }
.riot-link-form button:disabled { cursor: not-allowed; opacity: .55; }
.riot-link-form .profile-edit-actions { align-items: end; }
.riot-link-actions { display: flex; gap: 9px; }

@media (max-width: 900px) {
  .section-wrap,.shoreline-inner { padding-left: 7%; padding-right: 7%; }
  .hub-grid { grid-template-columns: repeat(2,1fr); }
  .hero-copy { padding-left: 1%; }
  .hero-art { width: 53%; }
  .castle { transform: scale(.82); transform-origin: bottom right; right: 15%; }
  .site-header { padding: 0 5%; }
  .ranking-list-heading, .ranking-row { grid-template-columns: minmax(0, 1fr) 150px; }
  .profile-shell { width: 90%; }
  .profile-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .site-header { height: auto; min-height: 68px; padding: 10px 5%; flex-wrap: wrap; row-gap: 8px; }
  .profile-header { height: 68px; flex-wrap: nowrap; }
  .brand-mark { width: 33px; height: 33px; }
  .brand-name { font-size: 14px; }
  .main-nav { display: none; }
  .nav-cta { padding: 9px 10px; font-size: 9px; }
  .account-control { order: 3; width: 100%; justify-content: flex-end; }
  .account-message { max-width: 125px; }
  .account-user { max-width: 100%; }
  .account-user span { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero { display: block; min-height: 730px; padding: 58px 7% 0; }
  .hero-copy { width: 100%; padding: 0; }
  .hero h1 { font-size: clamp(54px,14vw,76px); }
  .hero-description { max-width: 320px; }
  .hero-note { margin-top: 24px; }
  .hero-art { top: auto; right: 0; bottom: 0; width: 100%; height: 43%; }
  .sun { top: 25px; right: 23%; width: 77px; height: 77px; }
  .castle { transform: scale(.65); right: 16%; bottom: 42%; }
  .hero-bottom { left: 7%; bottom: 13px; }
  .section-wrap,.shoreline-inner { padding-left: 7%; padding-right: 7%; }
  .hub-section { padding-top: 69px; padding-bottom: 67px; }
  .section-heading { align-items: start; flex-direction: column; gap: 17px; }
  .rankings-section { padding-top: 56px; padding-bottom: 60px; }
  .rank-region-control, .rank-region-control select { width: 100%; }
  .ranking-list-heading, .ranking-row { grid-template-columns: minmax(0, 1fr) 112px; gap: 8px; padding-right: 13px; padding-left: 13px; }
  .ranking-tier { font-size: 9px; }
  .ranking-game-tabs { gap: 14px; padding: 0 13px; }
  .ranking-game-tab { font-size: 9px; }
  .ranking-footnote { padding-right: 13px; padding-left: 13px; }
  .section-heading h2 { font-size: 43px; }
  .section-intro { max-width: 330px; }
  .hub-grid { gap: 9px; margin-top: 28px; }
  .hub-card { min-height: 158px; padding: 15px 12px; }
  .hub-card h3 { font-size: 17px; }
  .shoreline-section { padding: 63px 0 66px; }
  .shoreline-heading { gap: 23px; }
  .shoreline-heading .button { align-self: stretch; }
  .shoreline-heading h2 { font-size: 41px; }
  .filter-row { align-items: start; flex-direction: column; gap: 12px; margin-top: 27px; }
  .filter-tabs { width: 100%; gap: 17px; }
  .media-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .media-visual { height: 140px; }
  .media-info { padding: 11px 10px; }
  .media-info h3 { font-size: 15px; }
  .media-meta { flex-direction: column; gap: 4px; }
  .arcade-section { grid-template-columns: 1fr; gap: 34px; padding-top: 68px; padding-bottom: 76px; }
  .arcade-copy h2 { font-size: 45px; }
  .game-preview { height: 250px; }
  .site-footer { align-items: start; flex-wrap: wrap; gap: 12px; padding: 24px 7%; }
  .site-footer p { order: 3; width: 100%; margin: 0; }
  .site-footer .riot-legal { order: 4; width: 100%; max-width: none; }
  .footer-star { margin-left: auto; }
  .dialog-card { padding: 29px 22px 24px; }
  .dialog-card h2 { font-size: 31px; }
  .detail-heading { padding-right: 25px; }
  .detail-content { padding: 20px; }
  .voice-form input[type="file"] { flex: 1; }
  .profile-shell { width: 90%; padding: 35px 0 55px; }
  .profile-card { grid-template-columns: 1fr; gap: 19px; padding: 23px; }
  .profile-portrait-wrap { width: 100px; height: 100px; }
  .profile-media-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .profile-media-visual { height: 140px; }
  .profile-media-info { padding: 11px 10px; }
  .profile-media-info h3 { font-size: 14px; }
  .profile-contributions, .profile-voice-section { margin-top: 42px; }
  .profile-riot-section { margin-top: 42px; }
  .profile-section-heading h2 { font-size: 32px; }
  .profile-riot-card { align-items: start; flex-direction: column; }
  .game-dialog { width: 96vw; }
  .game-dialog iframe { height: 78vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
